IndexOf
IMathElementCollection.IndexOf method
Определяет индекс определенного математического элемента в коллекции.
public int IndexOf(IMathElement item)
Параметр | Тип | Описание |
---|---|---|
item | IMathElement | Элемент, который необходимо найти в коллекции. |
Возвращаемое значение
Индексitemесли он найден в коллекции; иначе -1.
Примеры
Пример:
[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
collection.Add(plusElement);
collection.Add(new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
int index = collection.IndexOf(plusElement);
Смотрите также
- interface IMathElement
- interface IMathElementCollection
- пространство имен Aspose.Slides.MathText
- сборка Aspose.Slides