idx_set()
MathParagraph::idx_set(int32_t, System::SharedPtr<IMathBlock>) method
Gets the item at the specified index. Read-only IMathBlock.
void Aspose::Slides::MathText::MathParagraph::idx_set(int32_t index, System::SharedPtr<IMathBlock> value) override
Arguments
Parameter | Type | Description |
---|---|---|
index | int32_t | The zero-based index of the item to get |
value | System::SharedPtr<IMathBlock> | The block of a mathematical text. |
Remarks
Example:
auto shape = slide->get_Shapes()->AddMathShape(x, y, width, height);
auto mathParagraph = (System::AsCast<MathPortion>(shape->get_TextFrame()->get_Paragraphs()->idx_get(0)->get_Portions()->idx_get(0)))->get_MathParagraph();
mathParagraph->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block1")));
mathParagraph->Add(System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"block2")));
auto block = mathParagraph->idx_get(1);
See Also
- Typedef SharedPtr
- Class IMathBlock
- Class MathParagraph
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides