Contains

MathParagraph.Contains method

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

public bool Contains(IMathBlock mathBlock)
ParámetroEscribeDescripción
mathBlockIMathBlockEl objeto que se va a ubicar en la colección.

Valor_devuelto

verdadero simathBlock 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);

Ver también