Item

Indexeur MathParagraph

Obtient l’élément à l’index spécifié. IMathBlock en lecture seule.

public IMathBlock this[int index] { get; set; }
ParamètreDescription
indexL’index de base zéro de l’élément à obtenir

Valeur de retour

Le bloc d’un texte mathématique.

Exemples

Exemple :

[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];

Voir aussi