com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathSuperscriptElement

  • All Implemented Interfaces:
    IMathElement, 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");
     
    • Constructor Detail

      • MathSuperscriptElement

        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);
         
    • Method Detail

      • 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();
         
        Specified by:
        getSuperscript in interface IMathSuperscriptElement