SetSuperscript()
IMathElement::SetSuperscript(System::SharedPtr<IMathElement>) method
Creates superscript
virtual System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSuperscript(System::SharedPtr<IMathElement> superscript)=0
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);
IMathElement::SetSuperscript(System::String) method
Creates superscript
virtual System::SharedPtr<IMathSuperscriptElement> Aspose::Slides::MathText::IMathElement::SetSuperscript(System::String superscript)=0
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 String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides