idx_get()

IMathBlockCollection::idx_get(int32_t) method

Gets the item at the specified index. Read-only IMathBlock.

virtual System::SharedPtr<IMathBlock> Aspose::Slides::MathText::IMathBlockCollection::idx_get(int32_t index)=0

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index of the item to get

Return Value

The block of a mathematical text.

Remarks

Example:

auto blockCollection = System::MakeObject<MathParagraph>();
blockCollection->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block1")));
blockCollection->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block2")));
auto block = blockCollection->idx_get(1);

See Also