Enclose()

MathElementBase::Enclose() method

Encloses a math element in parenthesis

System::SharedPtr<IMathDelimiter> Aspose::Slides::MathText::MathElementBase::Enclose() override

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();

MathElementBase::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::MathElementBase::Enclose(char16_t beginningCharacter, char16_t endingCharacter) override

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