CssRuleList Class
https://drafts.csswg.org/cssom/#the-cssrulelist-interface
public sealed class CssRuleList : IEnumerable<CssRule>, IReadOnlyCollection<CssRule>, IReadOnlyList<CssRule>, IEnumerableProperties
| Name | Description |
|---|---|
| Count | Gets the number of rules in the list. |
| Length | Gets the number of rules in the list. |
Count
CSSRules.csLength
CSSRules.csGets the number of rules in the list.
public uint Length { get; }Indexers
| Name | Description |
|---|---|
| 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.csthis[uint]
CSSRules.csGets the rule at the given index, or null when the index is out of range.
Methods
| Name | Description |
|---|---|
| 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.csReturns 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.csReturns the rule at the given index, or null when the index is out of range.