PortionCollection

PortionCollection 类

表示一组 Portion 的集合。

public sealed class PortionCollection : DomObject<Paragraph>, IPortionCollection

属性

名称描述
Count { get; }获取集合实际包含的元素数。只读 Int32。
IsReadOnly { get; }获取一个值,指示 ICollection 是否为只读。只读 Boolean。
Item { get; set; }获取指定索引处的元素。

方法

名称描述
Add(IPortion)将 Portion 添加到集合的末尾。
Clear()从集合中移除所有元素。
Contains(IPortion)确定 ICollection 是否包含特定值。
CopyTo(IPortion[], int)将 ICollection 的元素复制到数组中,从特定的数组索引开始。
GetEnumerator()返回一个遍历集合的枚举器。
IndexOf(IPortion)确定 IList 中特定项的索引。
Insert(int, IPortion)在指定索引处将 Portion 插入集合。
Remove(IPortion)从 ICollection 中移除特定对象的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。

参见