com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextStyle



  • public class TextStyle
    extends Object

    Class representing checkbox field

    • Method Detail

      • getFontName

        public String getFontName()

        Get the Name of the font.

        Returns:
        String value
      • setFontName

        public void setFontName(String value)

        Set the Name of the font.

        Parameters:
        value - String value
      • getFontSize

        public double getFontSize()

        Get the Fonts size.

        Returns:
        double value
      • setFontSize

        public void setFontSize(double value)

        Set the Fonts size.

        Parameters:
        value - double value
      • getAlignment

        @Deprecated
        public int getAlignment()
        Deprecated. 

        Gets horizontal alignment of the text.

        Returns:
        TextAlignment value
        See Also:
        TextAlignment
      • setAlignment

        @Deprecated
        public void setAlignment(int value)
        Deprecated. 

        Sets horizontal alignment of the text.

        Parameters:
        value - TextAlignment value
        See Also:
        TextAlignment
      • getHorizontalAlignment

        public int getHorizontalAlignment()

        Text alignment. Valid values are: Left, Center, Rigth.

        Returns:
        HorizontalAlignment value
        See Also:
        HorizontalAlignment
      • setHorizontalAlignment

        public void setHorizontalAlignment(int value)

        Text alignment. Valid values are: Left, Center, Rigth.

        Parameters:
        value - HorizontalAlignment value
        See Also:
        HorizontalAlignment
      • getColor

        public Color getColor()

        Get the Color of the text.

        Returns:
        Color object
      • setColor

        public void setColor(Color value)

        Set the Color of the text.

        Parameters:
        value - Color object
      • toString

        public String toString()

        String representation of TextStyle.

        Overrides:
        toString in class Object
        Returns:
        String representation.