PortionCollection

PortionCollection class

表示一个部分的集合。

public sealed class PortionCollection : DomObject<Paragraph>, IPortionCollection

Properties

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

Methods

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

See Also