Class OptionCollection

OptionCollection 类

表示选择字段选项集合的类。

public sealed class OptionCollection : ICollection<Option>

属性

名称描述
Count { get; }获取选项数量。
IsReadOnly { get; }获取一个值,指示集合是否为只读。
IsSynchronized { get; }如果对象是同步的,则返回 true。
Item { get; }通过索引获取选项。 (2 个索引器)
SyncRoot { get; }集合的同步对象。

方法

名称描述
Add(Option)在集合中添加项,抛出 NotImplementedException。
Clear()从集合中移除所有项。
Contains(Option)检查项是否存在于集合中,抛出 NotImplementedException。
CopyTo(Option[], int)将选项复制到数组中。
get(int)通过索引获取选项。
get(string)通过选项名称从集合中获取选项。
GetEnumerator()返回集合中选项的枚举器。
Remove(Option)从集合中移除项,抛出 NotImplementedException。

另见