Contains

MathParagraph.Contains method

Determina si la colección contiene un valor específico.

public bool Contains(IMathBlock mathBlock)
ParámetroTipoDescripción
mathBlockIMathBlockEl objeto a ubicar en la colección.

Valor de Retorno

true si mathBlock se encuentra en la colección; de lo contrario, false.

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.Add(block);
bool contains = mathParagraph.Contains(block);

Véase También