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