SetSuperscript()

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

Creates superscript

virtual System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSuperscript(System::SharedPtr<IMathElement> superscript)=0

Arguments

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

Return Value

New math element of type IMathSuperscriptElement

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"N");
auto index = System::MakeObject<MathematicalText>(u"4");
auto superscript = element->SetSuperscript(index);

IMathElement::SetSuperscript(System::String) method

Creates superscript

virtual System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSuperscript(System::String superscript)=0

Arguments

ParameterTypeDescription
superscriptSystem::StringSuperscript (upper index on the right)

Return Value

New math element of type IMathSuperscriptElement

Remarks

Example:

auto element = System::MakeObject<MathematicalText>(u"N");
auto superscript = element->SetSuperscript(u"4");

See Also