Table of Contents

Class CssRuleList

Namespace
SharpVectors.Dom.Css
Assembly
SharpVectors.Css.dll

The CSSRuleList interface provides the abstraction of an ordered collection of CSS rules. The items in the CSSRuleList are accessible via an integral index, starting from 0.

public sealed class CssRuleList : ICssRuleList, IList<ICssRule>, ICollection<ICssRule>, IEnumerable<ICssRule>, IEnumerable
Inheritance
CssRuleList
Implements
Inherited Members

Constructors

CssRuleList(ref string, object, IList<string>, bool, CssStyleSheetType)

Constructor for CssRuleList

Properties

Count

Gets the number of elements contained in the ICollection<T>.

HasFontRule

Gets a value specifying whether the contents of this list includes a font rule.

This is an implementation extension, not CSS specification.

IsReadOnly

Gets a value indicating whether the ICollection<T> is read-only.

this[int]

Gets or sets the element at the specified index.

this[ulong]

Used to retrieve a CSS rule by ordinal index. The order in this collection represents the order of the rules in the CSS style sheet. If index is greater than or equal to the number of rules in the list, this returns null.

Length

The number of CSSRules in the list. The range of valid child rule indices is 0 to length-1 inclusive.

Methods

Add(ICssRule)

Adds an item to the ICollection<T>.

Clear()

Removes all items from the ICollection<T>.

Contains(ICssRule)

Determines whether the ICollection<T> contains a specific value.

CopyTo(ICssRule[], int)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through the collection.

IndexOf(ICssRule)

Determines the index of a specific item in the IList<T>.

Insert(int, ICssRule)

Inserts an item to the IList<T> at the specified index.

Remove(ICssRule)

Removes the first occurrence of a specific object from the ICollection<T>.

RemoveAt(int)

Removes the IList<T> item at the specified index.