Enclose()

IMathElement::Enclose() method

Encloses a math element in parenthesis

virtual System::SharedPtr<IMathDelimiter> Aspose::Slides::MathText::IMathElement::Enclose()=0

Return Value

The math element of type IMathDelimiter which includes the parenthesis

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"x");
auto delimiter = element->Enclose();

IMathElement::Enclose(char16_t, char16_t) method

Encloses this element in specified characters such as parenthesis or another characters as framing

virtual System::SharedPtr<IMathDelimiter> Aspose::Slides::MathText::IMathElement::Enclose(char16_t beginningCharacter, char16_t endingCharacter)=0

Arguments

ParameterTypeDescription
beginningCharacterchar16_tBeginning character (usually left bracket)
endingCharacterchar16_tEnding character (usually right bracket)

Return Value

The math element of type IMathDelimiter which includes specified characters as framing

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"x");
auto delimiter = element->Enclose(u'[', u']');

See Also