Item

MathParagraph indexer

Получает элемент по указанному индексу. Только для чтенияIMathBlock.

public IMathBlock this[int index] { get; set; }
ПараметрОписание
indexОтсчитываемый от нуля индекс элемента для получения

Возвращаемое значение

Блок математического текста.

Примеры

Пример:

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

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