SetSubSuperscriptOnTheLeft()
Contents
[
Hide
]MathElementBase::SetSubSuperscriptOnTheLeft(System::SharedPtr<IMathElement>, System::SharedPtr<IMathElement>) method
Creates subscript and superscript on the left
System::SharedPtr<IMathLeftSubSuperscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubSuperscriptOnTheLeft(System::SharedPtr<IMathElement> subscript, System::SharedPtr<IMathElement> superscript) override
Arguments
Parameter | Type | Description |
---|---|---|
subscript | System::SharedPtr<IMathElement> | Subscript (lower index on the left) |
superscript | System::SharedPtr<IMathElement> | Superscript (upper index on the left) |
Return Value
New math element of type IMathLeftSubSuperscriptElement
Remarks
Example:
auto baseElement = System::MakeObject<MathematicalText>(u"N");
auto subscript = System::MakeObject<MathematicalText>(u"i");
auto superscript = System::MakeObject<MathematicalText>(u"j");
auto leftSubsuperscript = baseElement->SetSubSuperscriptOnTheLeft(subscript, superscript);
MathElementBase::SetSubSuperscriptOnTheLeft(System::String, System::String) method
Creates subscript and superscript on the left
System::SharedPtr<IMathLeftSubSuperscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubSuperscriptOnTheLeft(System::String subscript, System::String superscript) override
Arguments
Parameter | Type | Description |
---|---|---|
subscript | System::String | Subscript (lower index on the left) |
superscript | System::String | Superscript (upper index on the left) |
Return Value
New math element of type IMathLeftSubSuperscriptElement
Remarks
Example:
auto baseElement = System::MakeObject<MathematicalText>(u"N");
auto leftSubsuperscript = baseElement->SetSubSuperscriptOnTheLeft(u"i", u"j");
See Also
- Typedef SharedPtr
- Class IMathLeftSubSuperscriptElement
- Class IMathElement
- Class MathElementBase
- Class String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides