com.aspose.html.dom.css

Class CSSValue

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static short CSS_CUSTOM
      The value is a custom value.
      static short CSS_INHERIT
      The value is inherited and the cssText contains "inherit".
      static short 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.
      static short 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.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CSSValue(short valueType)
      Initializes a new instance of the CSSValue class.
    • Field Detail

      • CSS_INHERIT

        public static final short CSS_INHERIT

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

        See Also:
        Constant Field Values
      • CSS_PRIMITIVE_VALUE

        public static final short 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 short 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 short CSS_CUSTOM

        The value is a custom value.

        See Also:
        Constant Field Values
    • Constructor Detail

      • CSSValue

        public CSSValue(short valueType)

        Initializes a new instance of the CSSValue class.

        Parameters:
        valueType - Type of the value.
    • Method Detail

      • 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 short getCSSValueType()

        A code defining the type of the value.

        Value: The type of the CSS value.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

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

        public boolean equals(Object obj)

        Determines whether the specified System.Object is equal to this instance.

        Overrides:
        equals in class Object
        Parameters:
        obj - The System.Object to compare with this instance.
        Returns:
        true if the specified System.Object is equal to this instance; otherwise, false.
        Throws:
        T: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.
      • 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.