IPortionCollection

IPortionCollection 接口

表示一个部分的集合。

public interface IPortionCollection : IEnumerable<IPortion>

属性

名称描述
AsIEnumerable { get; }返回 IEnumerable 接口。唯读 IEnumerable。
Count { get; }获取集合中实际包含的元素数量。唯读 Int32。
Item { get; }获取指定索引处的元素。

方法

名称描述
Add(IPortion)将一个 Portion 添加到集合的末尾。
Clear()从集合中移除所有元素。
Contains(IPortion)确定 ICollection 是否包含特定值。
IndexOf(IPortion)确定特定部分在集合中的索引。
Insert(int, IPortion)在指定索引处将一个 Portion 插入到集合中。
Remove(IPortion)从 ICollection 中移除特定对象的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。

参见