Insert
MathParagraph.Insert méthode
Insère IMathBlock dans la collection à l’index spécifié.
public void Insert(int index, IMathBlock mathBlock)
Paramètre | Type | Description |
---|---|---|
index | Int32 | L’index basé sur zéro où un élément doit être inséré. |
mathBlock | IMathBlock | L’IMathBlock à insérer. |
Exemples
Exemple :
[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.Insert(0, block);
Voir aussi
- interface IMathBlock
- class MathParagraph
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides