IMathSubscriptElement

All Implemented Interfaces: com.aspose.slides.IMathElement

public interface IMathSubscriptElement extends IMathElement

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");

Methods

Method Description
getBase() Base argument
getSubscript() Subscript

getBase()

public abstract IMathElement getBase()

Base argument


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

Returns: IMathElement

getSubscript()

public abstract 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