com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class TextItemOptions



  • public final class TextItemOptions
    extends Object

    Provides the options for a text item.

    • Field Detail

      • BOLD

        public static final TextItemOptions BOLD

        Gets an options for Bold text.

      • ITALIC

        public static final TextItemOptions ITALIC

        Gets an options for Italic text.

      • BOLD_ITALIC

        public static final TextItemOptions BOLD_ITALIC

        Gets an options for Bold and Italic text.

    • Constructor Detail

      • TextItemOptions

        public TextItemOptions()

        Initializes a new instance of the TextItemOptions class.

      • TextItemOptions

        public TextItemOptions(boolean isBold,
                       boolean isItalic)

        Initializes a new instance of the TextItemOptions class.

        Parameters:
        isBold - A boolean if text is bold; otherwise, false.
        isItalic - A boolean if text is italic; otherwise, false.
    • Method Detail

      • isBold

        public boolean isBold()

        Gets a value indicating whether text is bold.

        Returns:
        A boolean if text is bold; otherwise, false.
      • isItalic

        public boolean isItalic()

        Gets a value indicating whether text is italic.

        Returns:
        A boolean if text is italic; otherwise, false.
      • op_Equality

        public static boolean op_Equality(TextItemOptions left,
                          TextItemOptions right)

        Checks if the values of two operands are equal or not, if yes then condition becomes true.

        Parameters:
        left - The first object to compare.
        right - The second object to compare.
        Returns:
        A boolean true if values are equal; otherwise, false.
      • op_Inequality

        public static boolean op_Inequality(TextItemOptions left,
                            TextItemOptions right)

        Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.

        Parameters:
        left - The first object to compare.
        right - The second object to compare.
        Returns:
        A boolean true if values are not equal; otherwise, false.
      • equals

        public boolean equals(TextItemOptions other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • equals

        public boolean equals(Object obj)

        Indicates whether some other object is "equal to" this one.

        Overrides:
        equals in class Object
        Parameters:
        obj - The reference object with which to compare.
        Returns:
        the reference object with which to compare.
      • hashCode

        public int hashCode()

        Returns a hash code value for the object.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code value for this object.