Class CSSValue

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

objectDOMObjectCSSValue

Derived

CSSPrimitiveValue, CSSValueList

Implements

INotifyPropertyChanged

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

ushort

CSS_INHERIT

The value is inherited and the cssText contains “inherit”.

public const ushort CSS_INHERIT = 0

Field Value

ushort

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

ushort

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

ushort

Properties

CSSText

A string representation of the current value.

[DOMName("cssText")]
public abstract string CSSText { get; set; }

Property Value

string

CSSValueType

A code defining the type of the value.

[DOMName("cssValueType")]
public ushort CSSValueType { get; }

Property Value

ushort

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

bool

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

bool

true if the specified System.Object is equal to this instance; otherwise, false.

Exceptions

NullReferenceException

The obj parameter is null.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

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

Type

The ECMAScript object System.Type.

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

string

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

bool

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

bool

The result of the operator.