SetSubscript()

IMathElement::SetSubscript(System::SharedPtr<IMathElement>) method

Creates subscript

virtual System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::IMathElement::SetSubscript(System::SharedPtr<IMathElement> subscript)=0

Arguments

ParameterTypeDescription
subscriptSystem::SharedPtr<IMathElement>Subscript (lower index on the right)

Return Value

New math element of type IMathSubscriptElement

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"N");
auto index = System::MakeObject<MathematicalText>(u"i");
auto subscript = element->SetSubscript(index);

IMathElement::SetSubscript(System::String) method

Creates subscript

virtual System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::IMathElement::SetSubscript(System::String subscript)=0

Arguments

ParameterTypeDescription
subscriptSystem::StringSubscript (lower index on the right)

Return Value

New math element of type IMathSubscriptElement

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"N");
auto subscript = element->SetSubscript(u"i");

See Also