com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathRightSubSuperscriptElement

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

      • MathRightSubSuperscriptElement

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

        Initializes a new instance of the MathRightSubSuperscriptElement class.

    • Method Detail

      • 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();
         
        Specified by:
        getSubscript in interface IMathRightSubSuperscriptElement
      • 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();
         
        Specified by:
        getSuperscript in interface IMathRightSubSuperscriptElement
      • 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);
         
        Specified by:
        getAlignScripts in interface IMathRightSubSuperscriptElement
      • setAlignScripts

        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);
         
        Specified by:
        setAlignScripts in interface IMathRightSubSuperscriptElement