IMathLeftSubSuperscriptElement
All Implemented Interfaces: com.aspose.slides.IMathElement
public interface IMathLeftSubSuperscriptElement extends IMathElement
Specifies the Sub-Superscript object, which consists of a base and a subscript and superscript placed to the left of the base.
Example: IMathLeftSubSuperscriptElement leftSubsuperscript = new MathematicalText("N").setSubSuperscriptOnTheLeft("i", "j");
Methods
Method | Description |
---|---|
getBase() | Base argument |
getSubscript() | Subscript |
getSuperscript() | Superscript |
getBase()
public abstract IMathElement getBase()
Base argument
Example: IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathLeftSubSuperscriptElement leftSubSuperscript = new MathLeftSubSuperscriptElement(baseElement, subscript, superscript); IMathElement baseElem = leftSubSuperscript.getBase();
Returns: IMathElement
getSubscript()
public abstract IMathElement getSubscript()
Subscript
Example: IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathLeftSubSuperscriptElement leftSubSuperscript = new MathLeftSubSuperscriptElement(baseElement, subscript, superscript); IMathElement sub = leftSubSuperscript.getSubscript();
Returns: IMathElement
getSuperscript()
public abstract IMathElement getSuperscript()
Superscript
Example: IMathElement baseElement = new MathematicalText("X"); IMathElement subscript = new MathematicalText("i"); IMathElement superscript = new MathematicalText("j"); MathLeftSubSuperscriptElement leftSubSuperscript = new MathLeftSubSuperscriptElement(baseElement, subscript, superscript); IMathElement sup = leftSubSuperscript.getSuperscript();
Returns: IMathElement