Table of Contents

Class StyleSheetList

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

The StyleSheetList interface provides the abstraction of an ordered collection of style sheets. The items in the StyleSheetList are accessible via an integral index, starting from 0.

public sealed class StyleSheetList : IStyleSheetList, IList<IStyleSheet>, ICollection<IStyleSheet>, IEnumerable<IStyleSheet>, IEnumerable
Inheritance
StyleSheetList
Implements
Inherited Members

Properties

Count

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

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 style sheet by ordinal index. If index is greater than or equal to the number of style sheets in the list, this returns null.

Length

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

Methods

Add(IStyleSheet)

Adds an item to the ICollection<T>.

AddCssStyleSheet(CssStyleSheet)
Clear()

Removes all items from the ICollection<T>.

Contains(IStyleSheet)

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

CopyTo(IStyleSheet[], 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.

GetStylesForElement(XmlElement, string, CssCollectedStyleDeclaration)

Used to find matching style rules in the cascading order

IndexOf(IStyleSheet)

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

Insert(int, IStyleSheet)

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

Remove(IStyleSheet)

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

RemoveAt(int)

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