DropDownItemCollection

DropDownItemCollection

概述

DropDownItemCollection 是 Aspose.Words FOSS 中用于 .NET 的一个类。继承自:IEnumerable<string>,IComplexAttr。

一个字符串集合,表示下拉表单字段中的所有项目。

此类提供 8 个方法,用于在 .NET 程序中操作 DropDownItemCollection 对象。可用的方法包括:Add、Clear、Contains、GetEnumerator、IndexOf、Insert、Remove、RemoveAt。安装 Aspose.Words FOSS for .NET 包后,所有公共成员均可供任何 .NET 应用程序访问。属性:Count。

属性

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

方法

签名描述
GetEnumerator()返回一个 enumeratoriteratorenumerator 对象,可用于遍历集合中的所有项。
Add(value: string)在集合的末尾添加一个字符串。
Contains(value: string)确定集合是否包含指定的值。
IndexOf(value: string)返回集合中指定值的零基索引。
Insert(index: int, value: string)在指定索引位置向集合中插入字符串。
Remove(name: string)从集合中移除指定的值。
RemoveAt(index: int)移除指定索引处的值。
Clear()从集合中移除所有元素。

另请参阅

 中文