PdfShapeFormattedTextFragmentCollection

PdfShapeFormattedTextFragmentCollection class

表示 pdf 文档 XObject、Artifact 或 Annotation 中格式化文本片段的集合。

public class PdfShapeFormattedTextFragmentCollection : PdfFormattedTextFragmentCollection

特性

姓名 描述
CollectionType { get; } 获取格式化片段集合类型。
virtual Count { get; } 获取集合中包含的元素数。
override IsReadOnly { get; } 获取一个值,指示集合是否为只读。
virtual Item { get; } 获取集合中指定索引处的元素。

方法

姓名 描述
Add(string) 将格式化的文本片段添加到集合中。
Add(string, Font) 将格式化的文本片段添加到集合中。
Add(string, Font, Color) 将格式化的文本片段添加到集合中。
Add(string, Font, Color, Color) 将格式化的文本片段添加到集合中。
Clear()
virtual Contains(FormattedTextFragment)
virtual GetEnumerator()
virtual IndexOf(FormattedTextFragment)
Insert(int, string) 将格式化文本片段插入集合中给定索引处。
Insert(int, string, Font) 将格式化文本片段插入集合中给定索引处。
Insert(int, string, Font, Color) 将格式化文本片段插入集合中给定索引处。
Insert(int, string, Font, Color, Color) 将格式化文本片段插入集合中给定索引处。
Remove(FormattedTextFragment)
RemoveAt(int)

评论

此集合包含的项目PdfFormattedTextFragment类型.

也可以看看