IMathRightSubSuperscriptElement

All Implemented Interfaces: com.aspose.slides.IMathElement

public interface IMathRightSubSuperscriptElement extends IMathElement

Specifies the Sub-Superscript object, which consists of a base and a subscript and superscript placed to the right of the base.


Example:
 
 IMathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").setSubSuperscriptOnTheRight("i", "j");

Methods

MethodDescription
getBase()Base argument
getSubscript()Subscript argument
getSuperscript()Superscript argument
getAlignScripts()Specifies the alignment of subscript/superscript.
setAlignScripts(boolean value)Specifies the alignment of subscript/superscript.

getBase()

public abstract IMathElement getBase()

Base argument


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 IMathElement superscript = new MathematicalText("j");
 MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript);
 IMathElement baseElem = subsuperscript.getBase();

Returns: IMathElement

getSubscript()

public abstract IMathElement getSubscript()

Subscript argument


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 IMathElement superscript = new MathematicalText("j");
 MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript);
 IMathElement sub = subsuperscript.getSubscript();

Returns: IMathElement

getSuperscript()

public abstract IMathElement getSuperscript()

Superscript argument


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 IMathElement superscript = new MathematicalText("j");
 MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript);
 IMathElement sup = subsuperscript.getSuperscript();

Returns: IMathElement

getAlignScripts()

public abstract boolean getAlignScripts()

Specifies the alignment of subscript/superscript. When true, subscript and superscript are aligned horizontally to each other. When false, they are kerned to the shape of the base. Default value is false.


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 IMathElement superscript = new MathematicalText("j");
 MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript);
 subsuperscript.setAlignScripts(true);

Returns: boolean

setAlignScripts(boolean value)

public abstract void setAlignScripts(boolean value)

Specifies the alignment of subscript/superscript. When true, subscript and superscript are aligned horizontally to each other. When false, they are kerned to the shape of the base. Default value is false.


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement subscript = new MathematicalText("i");
 IMathElement superscript = new MathematicalText("j");
 MathRightSubSuperscriptElement subsuperscript = new MathRightSubSuperscriptElement(baseElement, subscript, superscript);
 subsuperscript.setAlignScripts(true);

Parameters:

ParameterTypeDescription
valueboolean