CustomPartCollection

CustomPartCollection

概述

CustomPartCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<CustomPart>。

表示一组 CustomPart 对象。

此类提供 5 种方法,用于在 .NET 程序中处理 CustomPartCollection 对象。可用方法包括:Add、Clear、Clone、GetEnumerator、RemoveAt。在安装了面向 .NET 的 Aspose.Words FOSS 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count。

属性

名称类型访问描述
Countint读取获取集合中包含的元素数量。

方法

签名描述
GetEnumerator()返回一个可用于遍历集合中所有项目的 enumeratoriteratorenumerator 对象。
Add(part: CustomPart)向集合中添加一个项目。
RemoveAt(index: int)删除指定索引处的项目。
Clear()从集合中移除所有元素。
Clone()对该集合及其项目进行深拷贝。

另请参阅

 中文