com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class MathematicalText

    • Constructor Detail

      • MathematicalText

        public MathematicalText()

        Default constructor (create String.Empty Value)


        Example:
         
         MathematicalText mathText = new MathematicalText();
         
      • MathematicalText

        public MathematicalText(char mathSymbol)

        Create MathText with single symbol


        Example:
         
         MathematicalText mathText = new MathematicalText('$');
         
        Parameters:
        mathSymbol - single symbol
      • MathematicalText

        public MathematicalText(java.lang.String mathText)

        Create MathematicalText from text


        Example:
         
         MathematicalText mathText = new MathematicalText("x+y");
         
        Parameters:
        mathText - text value
      • MathematicalText

        public MathematicalText(java.lang.String mathText,
                                IPortionFormat portionFormat)

        Create MathematicalText from text and format settings


        Example:
         
         IPortionFormat format = new PortionFormat();
         format.setFontHeight(12);
         MathematicalText mathText = new MathematicalText("x+y", format);
         
        Parameters:
        mathText - text value
        portionFormat - text format settings
    • Method Detail

      • getValue

        public final java.lang.String getValue()

        Text value


        Example:
         
         IMathematicalText mathText = new MathematicalText("x+y");
         String textValue = mathText.getValue();
         
        Specified by:
        getValue in interface IMathematicalText
      • setValue

        public final void setValue(java.lang.String value)

        Text value


        Example:
         
         IMathematicalText mathText = new MathematicalText("x+y");
         String textValue = mathText.getValue();
         
        Specified by:
        setValue in interface IMathematicalText
      • getFormat

        public final IPortionFormat getFormat()

        Text formatting properties


        Example:
         
         IMathematicalText mathText = new MathematicalText("x+y");
         mathText.getFormat().setFontHeight(28);
         
        Specified by:
        getFormat in interface IMathematicalText