MathSuperscriptElement
Contents
[
Hide
]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
| Constructor | Description |
|---|---|
| MathSuperscriptElement(IMathElement baseArg, IMathElement superScript) | Initializes a new instance of the MathSuperscriptElement class. |
Methods
| Method | Description |
|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| baseArg | IMathElement | |
| superScript | IMathElement |
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[]