com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathSubscriptElement

  • All Implemented Interfaces:
    IMathElement, IMathSubscriptElement


    public final class MathSubscriptElement
    extends BaseScript
    implements IMathSubscriptElement

    Specifies the subscript object, which consists of a base and a reduced-size subscript placed below and to the right.


    Example:
     
     IMathSubscriptElement subscriptElement = new MathematicalText("N").setSubscript("i");
     
    • Constructor Detail

      • MathSubscriptElement

        public MathSubscriptElement(IMathElement baseArg,
                                    IMathElement subScript)

        Initializes a new instance of the MathSubscriptElement class.


        Example:
         
         IMathElement baseElement = new MathematicalText("X");
         IMathElement subscript = new MathematicalText("i");
         MathSubscriptElement subscriptElement = new MathSubscriptElement(baseElement, subscript);
         
    • Method Detail

      • getSubscript

        public final IMathElement getSubscript()

        Subscript


        Example:
         
         IMathElement baseElement = new MathematicalText("X");
         IMathElement subscript = new MathematicalText("i");
         MathSubscriptElement subscriptElement = new MathSubscriptElement(baseElement, subscript);
         IMathElement sub = subscriptElement.getSubscript();
         
        Specified by:
        getSubscript in interface IMathSubscriptElement