SetSubscript()

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

Creates subscript

System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubscript(System::SharedPtr<IMathElement> subscript) override

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);

MathElementBase::SetSubscript(System::String) method

Creates subscript

System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubscript(System::String subscript) override

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