CSSValueList Class

CSSValueList class

The CSSValueList interface provides the abstraction of an ordered collection of CSS values.

Note: This interface was part of an attempt to create a typed CSS Object Model. This attempt has been abandoned, and most browsers do not implement it.

public class CSSValueList : CSSValue, ICSSValueList, IEnumerable<CSSValue>

Constructors

NameDescription
CSSValueList()Initializes a new instance of the CSSValueList class.
CSSValueList(params CSSValue[])Initializes a new instance of the CSSValueList class.
CSSValueList(IEnumerable<CSSValue>)Initializes a new instance of the CSSValueList class.

Properties

NameDescription
[getCSSText]
[setCSSText] The cssText property of the CSSValue interface represents the current computed CSS property value.
getCSSValueType A code defining the type of the value.
getItem The item() method of the CSSValueList interface is used to retrieve a CSSValue by ordinal index.
getLength The length read-only property of the CSSValueList interface represents the number of CSSValues in the list. The range of valid values of the indices is 0 to length-1 inclusive.

Methods

NameDescription
equals(object)Determines whether the specified Object is equal to this instance.
getEnumerator()Returns an enumerator that iterates through the collection.
getHashCode()Returns a hash code for this instance.
getPlatformType()This method is used to retrieve ECMAScript object Type.
toString()Returns a String that represents this instance.

See Also