Insert

MathParagraph.Insert method

Inserta IMathBlock en la colección en el índice especificado.

public void Insert(int index, IMathBlock mathBlock)
ParámetroEscribeDescripción
indexInt32El índice de base cero en el que se debe insertar un elemento.
mathBlockIMathBlockEl IMathBlock para 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);

Ver también