Insert
IMathElementCollection.Insert method
Insère un élément mathématique dans la collection à l’index spécifié.
public void Insert(int index, IMathElement item)
Paramètre | Taper | La description |
---|---|---|
index | Int32 | Index de base zéro auquel IMathElement doit être inséré. |
item | IMathElement | IMathElement à insérer. |
Exemples
Exemple :
[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")));
Voir également
- interface IMathElement
- interface IMathElementCollection
- espace de noms Aspose.Slides.MathText
- Assemblée Aspose.Slides