RemoveAt

MathParagraph.RemoveAt method

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

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

Примеры

Пример:

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
IMathBlock block = new MathBlock(new MathematicalText("y"));
mathParagraph.Add(block);
mathParagraph.RemoveAt(0);

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