RemoveAt

IMathElementCollection.RemoveAt method

Удаляет элемент по указанному индексу коллекции.

public void RemoveAt(int index)
ПараметрТипОписание
indexInt32Отсчитываемый от нуля индекс удаляемого элемента.

Примеры

Пример:

[C#]
IMathElementCollection collection = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
collection.Add(plusElement);
collection.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
collection.RemoveAt(2);

Смотрите также