StylePropertyMapReadOnly Class

The values of the properties of a declaration block or of a computed style, as CssStyleValue objects (https://drafts.css-houdini.org/css-typed-om-1/#stylepropertymapreadonly). The map is live: it reflects the current declarations. A list-valued property (e.g. transition-duration) has one value per iteration.

public abstract class StylePropertyMapReadOnly : IEnumerable<KeyValuePair<string, IReadOnlyList<CssStyleValue>>>, IEnumerable
Implements

Properties

NameDescription
SizeThe number of properties of the map (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-size).

The number of properties of the map (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-size).

public uint Size { get; }

Methods

NameDescription
Get(string)Returns the first value of a property, or null when the map does not contain it (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-get).
GetAll(string)Returns the values of a property (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-getall).
GetEnumerator()Enumerates the properties and their values (https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap).
Has(string)https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-has
System.Collections.IEnumerable.GetEnumerator()

Returns the first value of a property, or null when the map does not contain it (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-get).

public CssStyleValue? Get(string property)

GetAll(string)

StylePropertyMap.cs

Returns the values of a property (https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-getall).

public IReadOnlyList<CssStyleValue> GetAll(string property)

GetEnumerator()

StylePropertyMap.cs

Enumerates the properties and their values (https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap).

https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-has

public bool Has(string property)

System.Collections.IEnumerable.GetEnumerator()

StylePropertyMap.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.