Insert()

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

Inserts IMathBlock into the collection at the specified index.

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

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index at which an item should be inserted.
itemSystem::SharedPtr<IMathBlock>The IMathBlock to insert.

Remarks

Example:

auto blockCollection = System::MakeObject<MathParagraph>();
auto block = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"y"));
blockCollection->Insert(0, block);

See Also