Contains
MathParagraph.Contains method
Determina si la colección contiene un valor específico.
public bool Contains(IMathBlock mathBlock)
Parámetro | Tipo | Descripción |
---|---|---|
mathBlock | IMathBlock | El 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
- interface IMathBlock
- class MathParagraph
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides