MathRightSubSuperscriptElement

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

All Implemented Interfaces: com.aspose.slides.IMathRightSubSuperscriptElement

public final class MathRightSubSuperscriptElement extends BaseScript implements IMathRightSubSuperscriptElement

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


Example:
 
 MathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").SetSubSuperscriptOnTheRight("i", "j");

Constructors

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

Methods

MethodDescription
getSubscript()Subscript argument
getSuperscript()Superscript argument
getAlignScripts()Specifies the alignment of subscript/superscript.
setAlignScripts(boolean value)Specifies the alignment of subscript/superscript.
getChildren()Get children elements

MathRightSubSuperscriptElement(IMathElement baseArg, IMathElement subScript, IMathElement superScript)

public MathRightSubSuperscriptElement(IMathElement baseArg, IMathElement subScript, IMathElement superScript)

Initializes a new instance of the MathRightSubSuperscriptElement class.

Parameters:

ParameterTypeDescription
baseArgIMathElement
subScriptIMathElement
superScriptIMathElement

getSubscript()

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

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]