Insert
MathParagraph.Insert method
Inserta IMathBlock en la colección en el índice especificado.
public void Insert(int index, IMathBlock mathBlock)
Parámetro | Tipo | Descripción |
---|---|---|
index | Int32 | El índice basado en cero en el que se debe insertar un elemento. |
mathBlock | IMathBlock | El IMathBlock a insertar. |
Ejemplos
Ejemplo:
[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);
Véase también
- interface IMathBlock
- class MathParagraph
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides