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
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index at which an item should be inserted. |
item | System::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
- Typedef SharedPtr
- Class IMathBlock
- Class IMathBlockCollection
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides