MathSubscriptElement

Inheritance: java.lang.Object, com.aspose.slides.MathElementBase, com.aspose.slides.BaseScript

All Implemented Interfaces: com.aspose.slides.IMathSubscriptElement

public final class MathSubscriptElement extends BaseScript implements IMathSubscriptElement

Specifies the subscript object, which consists of a base and a reduced-size subscript placed below and to the right.


Example:
 
 IMathSubscriptElement subscriptElement = new MathematicalText("N").setSubscript("i");

Constructors

ConstructorDescription
MathSubscriptElement(IMathElement baseArg, IMathElement subScript)Initializes a new instance of the MathSubscriptElement class.

Methods

MethodDescription
getSubscript()Subscript
getChildren()Get children elements

MathSubscriptElement(IMathElement baseArg, IMathElement subScript)

public MathSubscriptElement(IMathElement baseArg, IMathElement subScript)

Initializes a new instance of the MathSubscriptElement class.


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 MathSubscriptElement subscriptElement = new MathSubscriptElement(baseElement, subscript);

Parameters:

ParameterTypeDescription
baseArgIMathElement
subScriptIMathElement

getSubscript()

public final IMathElement getSubscript()

Subscript


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 MathSubscriptElement subscriptElement = new MathSubscriptElement(baseElement, subscript);
 IMathElement sub = subscriptElement.getSubscript();

Returns: IMathElement

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]