SetSuperscript()
MathElementBase::SetSuperscript(System::SharedPtr<IMathElement>) method
Creates superscript
System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::MathElementBase::SetSuperscript(System::SharedPtr<IMathElement> superscript) override
Arguments
Parameter | Type | Description |
---|---|---|
superscript | System::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
Parameter | Type | Description |
---|---|---|
superscript | System::String | Superscript (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
- Typedef SharedPtr
- Class IMathSuperscriptElement
- Class IMathElement
- Class MathElementBase
- Class String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides