IMathElementCollection

IMathElementCollection 接口

表示一个数学元素 (MathElement) 的集合。

public interface IMathElementCollection : IEnumerable<IMathElement>

属性

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

方法

名称描述
Add(IMathElement)向集合末尾添加一个数学元素。
Clear()从集合中移除所有元素。
Contains(IMathElement)确定集合是否包含特定值。
CopyTo(IMathElement[], int)复制到指定数组。
IndexOf(IMathElement)确定集合中特定数学元素的索引。
Insert(int, IMathElement)在指定索引处向集合插入数学元素。
Remove(IMathElement)从集合中移除特定对象的第一次出现。
RemoveAt(int)从集合中移除指定索引处的元素。

示例

示例:

[C#]
IMathElementCollection collection = new MathBlock();

另见