com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class TextProperties

    • Field Detail

      • EMPTY

        public static final TextProperties EMPTY

        The empty text properties.

    • Constructor Detail

      • TextProperties

        public TextProperties()

        Initializes a new instance of the TextProperties class.

      • TextProperties

        public TextProperties(boolean isEmphasized)

        Initializes a new instance of the TextProperties class.

        Parameters:
        isEmphasized - A value indicating whether the text is emphasized.
      • TextProperties

        public TextProperties(boolean isEmphasized,
                      String style)

        Initializes a new instance of the TextProperties class.

        Parameters:
        isEmphasized - A value indicating whether the text is emphasized.
        style - A style name of the text.
      • TextProperties

        @Deprecated
        public TextProperties(boolean isBold,
                                 boolean isItalic)
        Deprecated. 
      • TextProperties

        @Deprecated
        public TextProperties(boolean isBold,
                                 boolean isItalic,
                                 String style)
        Deprecated. 
      • TextProperties

        public TextProperties(Font font)

        Initializes a new instance of the TextProperties class.

        Parameters:
        font - A font of the text.
      • TextProperties

        public TextProperties(Font font,
                      String style)

        Initializes a new instance of the TextProperties class.

        Parameters:
        font - A font of the text.
        style - A style name of the text.
    • Method Detail

      • isEmphasized

        public boolean isEmphasized()

        Gets a value indicating whether the text is emphasized.

        Returns:
        true if the text is emphasized; otherwise, false.
      • isBold

        @Deprecated
        public boolean isBold()
        Deprecated. 
      • isItalic

        @Deprecated
        public boolean isItalic()
        Deprecated. 
      • getStyle

        public String getStyle()

        Gets a style name of the text.

        Returns:
        A string with the style name.
      • getFont

        public Font getFont()

        Gets a font of the text.

        Returns:
        An instance of Font class.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object