Class CSSValue
Namespace: Aspose.Html.Dom.Css
Assembly: Aspose.HTML.dll (25.2.0)
Represents a simple or a complex value. A CSSValue object only occurs in a context of a CSS property.
[ComVisible(true)]
[DOMName("CSSValue")]
[DOMObject]
public abstract class CSSValue : DOMObject, INotifyPropertyChanged
Inheritance
Derived
CSSPrimitiveValue, CSSValueList
Implements
Inherited Members
DOMObject.GetPlatformType(), object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
CSSValue(ushort)
Initializes a new instance of the Aspose.Html.Dom.Css.CSSValue class.
protected CSSValue(ushort valueType)
Parameters
valueType
ushort
Type of the value.
Fields
CSS_CUSTOM
The value is a custom value.
public const ushort CSS_CUSTOM = 3
Field Value
CSS_INHERIT
The value is inherited and the cssText contains “inherit”.
public const ushort CSS_INHERIT = 0
Field Value
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.
public const ushort CSS_PRIMITIVE_VALUE = 1
Field Value
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.
public const ushort CSS_VALUE_LIST = 2
Field Value
Properties
CSSText
A string representation of the current value.
[DOMName("cssText")]
public abstract string CSSText { get; set; }
Property Value
CSSValueType
A code defining the type of the value.
[DOMName("cssValueType")]
public ushort CSSValueType { get; }
Property Value
Methods
Equals(CSSValue)
Determines whether the specified object is equal to this instance.
protected virtual bool Equals(CSSValue obj)
Parameters
obj
CSSValue
The object to compare with this instance.
Returns
true
if the specified Aspose.Html.Dom.Css.CSSValue is equal to this instance; otherwise, false
.
Equals(object)
Determines whether the specified System.Object is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
object
The System.Object to compare with this instance.
Returns
true
if the specified System.Object is equal to this instance; otherwise, false
.
Exceptions
The obj
parameter is null.
GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
GetPlatformType()
This method is used to retrieve ECMAScript object System.Type.
public override Type GetPlatformType()
Returns
The ECMAScript object System.Type.
ToString()
Returns a System.String that represents this instance.
public override string ToString()
Returns
A System.String that represents this instance.
Operators
operator ==(CSSValue, CSSValue)
Implements the operator ==.
public static bool operator ==(CSSValue left, CSSValue right)
Parameters
left
CSSValue
The left element.
right
CSSValue
The right element.
Returns
The result of the operator.
operator !=(CSSValue, CSSValue)
Implements the operator !=.
public static bool operator !=(CSSValue left, CSSValue right)
Parameters
left
CSSValue
The left element.
right
CSSValue
The right element.
Returns
The result of the operator.