FieldCollection
FieldCollection
概述
FieldCollection 是 Aspose.Words FOSS 中用于 .NET 的一个类。继承自:IEnumerable<Field>。
一个 Field 对象的集合,表示指定范围内的字段。
此类提供 4 种方法,用于在 .NET 程序中处理 FieldCollection 对象。可用的方法包括:Clear、GetEnumerator、Remove、RemoveAt。在安装 Aspose.Words FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 返回集合中字段的数量。 |
方法
| 签名 | 描述 |
|---|---|
Remove(field: Field) | 在此 FieldCollection 实例上调用 Remove(field)。 |
RemoveAt(index: int) | 从此集合以及文档中删除指定索引处的字段。 |
Clear() | 从文档中以及该集合本身中移除此集合的所有字段。 |
GetEnumerator() | 返回一个枚举器对象。 |