Insert

MathParagraph.Insert method

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

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