Item

MathParagraph indexer

Obtiene el elemento en el índice especificado. Solo lecturaIMathBlock .

public IMathBlock this[int index] { get; set; }
ParámetroDescripción
indexEl índice de base cero del elemento que se va a obtener

Valor_devuelto

El bloque de un texto matemático.

Ejemplos

Ejemplo:

[C#]
IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height);
IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph;
mathParagraph.Add(new MathBlock(new MathematicalText("block1")));
mathParagraph.Add(new MathBlock(new MathematicalText("block2")));
IMathBlock block = mathParagraph[1];

Ver también