CssRuleList Class

https://drafts.csswg.org/cssom/#the-cssrulelist-interface

Implements

Properties

NameDescription
CountGets the number of rules in the list.
LengthGets the number of rules in the list.

Gets the number of rules in the list.

public int Count { get; }

Property value

int

Gets the number of rules in the list.

public uint Length { get; }

Indexers

NameDescription
this[int]Gets the rule at the given index.
this[uint]Gets the rule at the given index, or null when the index is out of range.

ItemAt overloads

this[int]

CSSRules.cs

Gets the rule at the given index.

public CssRule this[int index] { get; }
Parameters
index int
Property value

CssRule

this[uint]

CSSRules.cs

Gets the rule at the given index, or null when the index is out of range.

public CssRule? this[uint index] { get; }

Methods

NameDescription
GetEnumerator()Returns an enumerator that iterates through the collection.
Item(uint)Returns the rule at the given index, or null when the index is out of range.
System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Css.Om.CssRule>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()

GetEnumerator()

CSSRules.cs

Returns an enumerator that iterates through the collection.

public IEnumerator<CssRule> GetEnumerator()

Returns

IEnumerator<CssRule> An enumerator that can be used to iterate through the collection.

Item(uint)

CSSRules.cs

Returns the rule at the given index, or null when the index is out of range.

public CssRule? Item(uint index)

System.Collections.Generic.IReadOnlyList<Meziantou.Framework.WebPlatform.Css.Om.CssRule>.get_Item(int)

CssRule IReadOnlyList<CssRule>.get_Item(int index)

Parameters

index int

Returns

CssRule

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

CSSRules.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.