TextSegmentCollection
概述
TextSegmentCollection 是 Aspose.PDF FOSS 中用于 .NET 的类。继承自:System.Collections.Generic.IEnumerable<TextSegment>。
一个基于 1 索引的 TextSegment 对象集合,属于 TextFragment。
此类提供 6 个方法,用于在 .NET 程序中处理 TextSegmentCollection 对象。可用的方法包括:Add、Clear、Contains、CopyTo、GetEnumerator、Remove。在安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count、IsReadOnly、IsSynchronized、SyncRoot。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 段的数量。 |
IsReadOnly | bool | 读取 | 获取 IsReadOnly。 |
IsSynchronized | bool | 读取 | 获取是否已同步。 |
SyncRoot | object | 读取 | 获取同步根。 |
方法
| 签名 | 描述 |
|---|---|
Add(segment: TextSegment) | 在此 TextSegmentCollection 实例上调用 Add(segment)。 |
Contains(item: TextSegment) | 在此 TextSegmentCollection 实例上调用 Contains(item)。 |
CopyTo(array: TextSegment[], index: int) | 在此 TextSegmentCollection 实例上调用 CopyTo(array, index)。 |
Remove(item: TextSegment) | 在此 TextSegmentCollection 实例上调用 Remove(item)。 |
Clear() | 在此 TextSegmentCollection 实例上调用 Clear。 |
GetEnumerator() | 在此 TextSegmentCollection 实例上调用 GetEnumerator。 |