SetSubSuperscriptOnTheRight()

IMathElement::SetSubSuperscriptOnTheRight(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) method

Creates subscript and superscript on the right

virtual System::SharedPtr<IMathRightSubSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSubSuperscriptOnTheRight(System::SharedPtr<IMathElement> subscript, System::SharedPtr<IMathElement> superscript)=0

Arguments

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

Return Value

New math element of type IMathRightSubSuperscriptElement

Remarks

Example:

auto baseElement = System::MakeObject<MathematicalText>(u"N");
auto subscript = System::MakeObject<MathematicalText>(u"i");
auto superscript = System::MakeObject<MathematicalText>(u"j");
auto subsuperscript = baseElement->SetSubSuperscriptOnTheRight(subscript, superscript);

IMathElement::SetSubSuperscriptOnTheRight(System::String, System::String) method

Creates subscript and superscript on the right

virtual System::SharedPtr<IMathRightSubSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSubSuperscriptOnTheRight(System::String subscript, System::String superscript)=0

Arguments

ParameterTypeDescription
subscriptSystem::StringSubscript (lower index on the right)
superscriptSystem::StringSuperscript (upper index on the right)

Return Value

New math element of type IMathRightSubSuperscriptElement

Remarks

Example:

auto baseElement = System::MakeObject<MathematicalText>(u"N");
auto subsuperscript = baseElement->SetSubSuperscriptOnTheRight(u"i", u"j");

See Also