Insert
MathBlock.Insert méthode
Insère un MathElement dans la collection à l’index spécifié.
public void Insert(int index, IMathElement item)
Paramètre | Type | Description |
---|---|---|
index | Int32 | L’index basé sur zéro à lequel le MathElement doit être inséré. |
item | IMathElement | Le MathElement à insérer. |
Exemples
Exemple:
[C#]
MathBlock mathBlock = new MathBlock(new MathematicalText("x"));
MathematicalText plusElement = new MathematicalText("+");
mathBlock.Add(plusElement);
mathBlock.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3")));
Voir aussi
- interface IMathElement
- class MathBlock
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides