MathSuperscriptElement

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

All Implemented Interfaces: com.aspose.slides.IMathSuperscriptElement

public final class MathSuperscriptElement extends BaseScript implements IMathSuperscriptElement

Specifies the superscript object, which consists of a base and a reduced-size superscript placed above and to the right


Example:
 
 IMathSuperscriptElement superscriptElement = new MathematicalText("N").setSuperscript("i");

Constructors

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

Methods

MethodDescription
getSuperscript()Superscript
getChildren()Get children elements

MathSuperscriptElement(IMathElement baseArg, IMathElement superScript)

public MathSuperscriptElement(IMathElement baseArg, IMathElement superScript)

Initializes a new instance of the MathSuperscriptElement class.


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement superscript = new MathematicalText("i");
 MathSuperscriptElement superscriptElement = new MathSuperscriptElement(baseElement, superscript);

Parameters:

ParameterTypeDescription
baseArgIMathElement
superScriptIMathElement

getSuperscript()

public final IMathElement getSuperscript()

Superscript


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement superscript = new MathematicalText("i");
 MathSuperscriptElement superscriptElement = new MathSuperscriptElement(baseElement, superscript);
 IMathElement super = superscriptElement.getSuperscript();

Returns: IMathElement

getChildren()

public final IMathElement[] getChildren()

Get children elements

Returns: com.aspose.slides.IMathElement[]