Enclose
MathDelimiter.Enclose method
Encloses a math element in specified characters such as parenthesis or another characters as framing
public override IMathDelimiter Enclose(char beginningCharacter, char endingCharacter)
Parameter | Type | Description |
---|---|---|
beginningCharacter | Char | Beginning character (usually left bracket) |
endingCharacter | Char | Ending character (usually right bracket) |
Return Value
If beginningCharacter and endingCharacter are null, corresponding properties are assigned values only and no new object is created (returns this instance). Otherwise, returns new math element of type Delimiter which includes specified characters as framing and this instance of MathDelimiter
framed inside.
Examples
Example:
[C#]
IMathDelimiter innerDelimiter = new MathematicalText("x").Join(",y").Enclose('{', '}');
IMathDelimiter outerDelimiter = innerDelimiter.Enclose('[', ']');
See Also
- interface IMathDelimiter
- class MathDelimiter
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides