com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IMathRightSubSuperscriptElement

  • All Superinterfaces:
    IMathElement
    All Known Implementing Classes:
    MathRightSubSuperscriptElement


    public interface IMathRightSubSuperscriptElement
    extends IMathElement

    Specifies the Sub-Superscript object, which consists of a base and a subscript and superscript placed to the right of the base.


    Example:
     
     IMathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").setSubSuperscriptOnTheRight("i", "j");
     
    • Method Detail

      • getBase

        IMathElement getBase()

        Base 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 baseElem = subsuperscript.getBase();
         
      • getSubscript

        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();
         
      • getSuperscript

        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();
         
      • getAlignScripts

        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);
         
      • setAlignScripts

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