Enclose()

MathBlock::Enclose(char16_t, char16_t) method

Encloses child elements of this block in specified characters such as parenthesis or another characters as framing

System::SharedPtr<IMathDelimiter> Aspose::Slides::MathText::MathBlock::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 block = System::MakeObject<MathematicalText>(u"x")->Join(u"+y");
auto delimiter = System::ExplicitCast<IMathElement>(block)->Enclose(u'[', u']');

MathBlock::Enclose(char16_t, char16_t, char16_t) method

Encloses child elements of this block in specified characters such as parenthesis or another as framing and delimit with a separator character

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

Arguments

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

Return Value

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

Remarks

Example:

auto mathBlock = System::MakeObject<MathematicalText>(u"x")->Join(u"y");
auto delimiterElement = mathBlock->Enclose(u'{', u'}', u'%');

See Also