Enclose()

MathDelimiter::Enclose(char16_t, char16_t) method

Encloses a math element in specified characters such as parenthesis or another characters as framing

System::SharedPtr<IMathDelimiter> Aspose::Slides::MathText::MathDelimiter::Enclose(char16_t beginningCharacter, char16_t endingCharacter) override

Arguments

ParameterTypeDescription
beginningCharacterchar16_tBeginning character (usually left bracket)
endingCharacterchar16_tEnding 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.

Remarks

Example:

auto innerDelimiter = System::ExplicitCast<IMathElement>(System::MakeObject<MathematicalText>(u"x")->Join(u",y"))->Enclose(u'{', u'}');
auto outerDelimiter = innerDelimiter->Enclose(u'[', u']');

See Also