com.groupdocs.parser.data

Class TextStyle



  • public final class TextStyle
    extends Object
    Represents the style of the text such as a font name, a font size and so on.
    • Constructor Detail

      • TextStyle

        public TextStyle(String name,
                 String fontName,
                 double fontSize,
                 boolean bold,
                 boolean italic)
        Initializes a new instance of the TextStyle class.
        Parameters:
        name - The name of the style.
        fontName - The name of the font.
        fontSize - The size of the font.
        bold - The value that indicates whether the font is bold.
        italic - The value that indicates whether the font is italic.
    • Method Detail

      • getName

        public String getName()
        Gets the style name.
        Returns:
        A string value that represents the style name.
      • getFontName

        public String getFontName()
        Gets the font name.
        Returns:
        A string value that represents the font name.
      • getFontSize

        public double getFontSize()
        Gets the font size.
        Returns:
        A double value that represents the font size.
      • isBold

        public boolean isBold()
        Gets the value that indicates whether the font is bold.
        Returns:
        true if the font is bold; otherwise, false.
      • isItalic

        public boolean isItalic()
        Gets the value that indicates whether the font is italic.
        Returns:
        true if the font is italic; otherwise, false.