CustomXmlPropertyCollection
CustomXmlPropertyCollection
概述
CustomXmlPropertyCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<CustomXmlProperty>。
表示一组自定义的 XML 属性或智能标签属性。
此类提供 7 个方法,用于在 .NET 程序中处理 CustomXmlPropertyCollection 对象。可用的方法包括:Add、Clear、Contains、GetEnumerator、IndexOfKey、Remove、RemoveAt。在安装了 Aspose.Words FOSS for .NET 包之后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 获取集合中包含的元素数量。 |
方法
| 签名 | 描述 |
|---|---|
GetEnumerator() | 返回一个可以用于遍历集合中所有项目的 enumeratoriteratorenumerator 对象。 |
Add(property: CustomXmlProperty) | 向集合中添加属性。 |
Contains(name: string) | 确定集合是否包含具有给定名称的属性。 |
IndexOfKey(name: string) | 返回集合中指定属性的零基索引。 |
Remove(name: string) | 从集合中删除具有指定名称的属性。 |
RemoveAt(index: int) | 删除指定索引处的属性。 |
Clear() | 从集合中删除所有元素。 |