TextSegmentCollection

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。

属性

名称类型访问描述
Countint读取段的数量。
IsReadOnlybool读取获取 IsReadOnly。
IsSynchronizedbool读取获取是否已同步。
SyncRootobject读取获取同步根。

方法

签名描述
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。

另请参阅

 中文