MathBlock()

MathBlock::MathBlock() constructor

Initializes a new instance of the MathBlock class.

Aspose::Slides::MathText::MathBlock::MathBlock()

Remarks

Example:

auto mathBlock = System::MakeObject<MathBlock>();

MathBlock::MathBlock(System::SharedPtr<IMathElement>) constructor

Creates a new mathematical block and puts specified element in it

Aspose::Slides::MathText::MathBlock::MathBlock(System::SharedPtr<IMathElement> mathElement)

Arguments

ParameterTypeDescription
mathElementSystem::SharedPtr<IMathElement>The mathematical element to put in the block

Remarks

Example:

auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));

MathBlock::MathBlock(System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<IMathElement>>>) constructor

Creates a new mathematical block and puts specified elements in it

Aspose::Slides::MathText::MathBlock::MathBlock(System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<IMathElement>>> mathElements)

Arguments

ParameterTypeDescription
mathElementsSystem::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<IMathElement>>>Mathematical elements to put in the block

Remarks

Example:

auto elems = System::MakeArray<System::SharedPtr<Aspose::Slides::MathText::IMathElement>>({System::MakeObject<MathematicalText>(u"item1"), System::MakeObject<MathematicalText>(u"item2")});
auto mathBlock = System::MakeObject<MathBlock>(elems);

See Also