SetSuperscript()

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

Creates superscript

System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::MathElementBase::SetSuperscript(System::SharedPtr<IMathElement> superscript) override

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

MathElementBase::SetSuperscript(System::String) method

Creates superscript

System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::MathElementBase::SetSuperscript(System::String superscript) override

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