Contains
MathParagraph.Contains-Methode
Bestimmt, ob die Sammlung einen bestimmten Wert enthält.
public bool Contains(IMathBlock mathBlock)
Parameter | Typ | Beschreibung |
---|---|---|
mathBlock | IMathBlock | Das Objekt, das in der Sammlung gefunden werden soll. |
Rückgabewert
true, wenn mathBlock in der Sammlung gefunden wird; andernfalls false.
Beispiele
Beispiel:
[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);
Siehe auch
- Schnittstelle IMathBlock
- Klasse MathParagraph
- Namespace Aspose.Slides.MathText
- Assembly Aspose.Slides