SetSubscript()
MathElementBase::SetSubscript(System::SharedPtr<IMathElement>) method
Creates subscript
System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubscript(System::SharedPtr<IMathElement> subscript) override
Arguments
Parameter | Type | Description |
---|---|---|
subscript | System::SharedPtr<IMathElement> | Subscript (lower index on the right) |
Return Value
New math element of type IMathSubscriptElement
Remarks
Example:
auto element = System::MakeObject<MathematicalText>(u"N");
auto index = System::MakeObject<MathematicalText>(u"i");
auto subscript = element->SetSubscript(index);
MathElementBase::SetSubscript(System::String) method
Creates subscript
System::SharedPtr<IMathSubscriptElement> Aspose::Slides::MathText::MathElementBase::SetSubscript(System::String subscript) override
Arguments
Parameter | Type | Description |
---|---|---|
subscript | System::String | Subscript (lower index on the right) |
Return Value
New math element of type IMathSubscriptElement
Remarks
Example:
auto element = System::MakeObject<MathematicalText>(u"N");
auto subscript = element->SetSubscript(u"i");
See Also
- Typedef SharedPtr
- Class IMathSubscriptElement
- Class IMathElement
- Class MathElementBase
- Class String
- Namespace Aspose::Slides::MathText
- Library Aspose.Slides