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();

另见