DocumentPropertyCollection
DocumentPropertyCollection
概述
DocumentPropertyCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<DocumentProperty>。
用于 BuiltInDocumentProperties 和 CustomDocumentProperties 集合的基类。
此类提供 6 个方法,用于在 .NET 程序中处理 DocumentPropertyCollection 对象。可用的方法包括:Clear、Contains、GetEnumerator、IndexOf、Remove、RemoveAt。在安装 Aspose.Words FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 获取集合中的项数。 |
方法
| 签名 | 描述 |
|---|---|
GetEnumerator() | 返回一个 enumeratoriteratorenumerator 对象,可用于遍历集合中的所有项。 |
Contains(name: string) | 如果集合中存在具有指定名称的属性,则返回 true。 |
IndexOf(name: string) | 获取属性按名称的索引。 |
Remove(name: string) | 从集合中删除具有指定名称的属性。 |
RemoveAt(index: int) | 删除指定索引处的属性。 |
Clear() | 从集合中删除所有属性。 |