idx_set()

IMathBlockCollection::idx_set(int32_t, System::SharedPtr<IMathBlock>) method

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

virtual void Aspose::Slides::MathText::IMathBlockCollection::idx_set(int32_t index, System::SharedPtr<IMathBlock> value)=0

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index of the item to get
valueSystem::SharedPtr<IMathBlock>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