com.aspose.html.dom.css

Class CSSValue

    • Field Detail

      • CSS_INHERIT

        public static final int CSS_INHERIT

        The value is inherited and the cssText contains "inherit".

        See Also:
        Constant Field Values
      • CSS_PRIMITIVE_VALUE

        public static final int CSS_PRIMITIVE_VALUE

        The value is a primitive value and an instance of the CSSPrimitiveValue interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.

        See Also:
        Constant Field Values
      • CSS_VALUE_LIST

        public static final int CSS_VALUE_LIST

        The value is a CSSValue list and an instance of the CSSValueList interface can be obtained by using binding-specific casting methods on this instance of the CSSValue interface.

        See Also:
        Constant Field Values
      • CSS_CUSTOM

        public static final int CSS_CUSTOM

        The value is a custom value.

        See Also:
        Constant Field Values
    • Method Detail

      • op_Equality

        public static boolean op_Equality(CSSValue left,
                                          CSSValue right)

        Implements the operator ==.

        Parameters:
        left - The left element.
        right - The right element.
        Returns:
        The result of the operator.
      • op_Inequality

        public static boolean op_Inequality(CSSValue left,
                                            CSSValue right)

        Implements the operator !=.

        Parameters:
        left - The left element.
        right - The right element.
        Returns:
        The result of the operator.
      • getCSSText

        @DOMNameAttribute(name="cssText")
        public abstract String getCSSText()

        A string representation of the current value.

        Value: The CSS text.
      • setCSSText

        @DOMNameAttribute(name="cssText")
        public abstract void setCSSText(String value)

        A string representation of the current value.

        Value: The CSS text.
      • getCSSValueType

        @DOMNameAttribute(name="cssValueType")
        public int getCSSValueType()

        A code defining the type of the value.

        Value: The type of the CSS value.
      • toString

        public String toString()

        Returns a String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A String that represents this instance.
      • equals

        public boolean equals(Object obj)

        Determines whether the specified Object is equal to this instance.

        Overrides:
        equals in class Object
        Parameters:
        obj - The Object to compare with this instance.
        Returns:
        true if the specified Object is equal to this instance; otherwise, false.
        Throws:
        com.aspose.html.internal.ms.System.NullReferenceException - The obj parameter is null.
      • hashCode

        public int hashCode()

        Returns a hash code for this instance.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.