idx_set()

MathBlock::idx_set(int32_t, System::SharedPtr<IMathElement>) method

Sets IMathElement at the specified index.

void Aspose::Slides::MathText::MathBlock::idx_set(int32_t index, System::SharedPtr<IMathElement> value)

Arguments

ParameterTypeDescription
indexint32_tThe zero-based index of the item
valueSystem::SharedPtr<IMathElement>The mathematical element.

Remarks

Example:

auto mathBlock = System::MakeObject<MathBlock>(System::MakeObject<MathematicalText>(u"x"));
auto firstElem = mathBlock->idx_get(0);

See Also