IMathSuperscriptElement

All Implemented Interfaces: com.aspose.slides.IMathElement

public interface IMathSuperscriptElement extends IMathElement

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

Methods

MethodDescription
getBase()Base argument
getSuperscript()Superscript

getBase()

public abstract IMathElement getBase()

Base argument


Example:
 
 IMathElement baseElement = new MathematicalText("X");
 IMathElement superscript = new MathematicalText("i");
 IMathSuperscriptElement superscriptElement = new MathSuperscriptElement(baseElement, subscript);
 IMathElement baseElem = superscriptElement.getBase();

Returns: IMathElement

getSuperscript()

public abstract IMathElement getSuperscript()

Superscript


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

Returns: IMathElement