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>>>, IEnumerableProperties
| Name | Description |
|---|---|
| Size | The 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; }Property value
See also
Methods
| Name | Description |
|---|---|
| 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() |
Get(string)
StylePropertyMap.csReturns 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.csReturns 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.csEnumerates the properties and their values (https://drafts.css-houdini.org/css-typed-om-1/#the-stylepropertymap).
public IEnumerator<KeyValuePair<string, IReadOnlyList<CssStyleValue>>> GetEnumerator()Has(string)
StylePropertyMap.cshttps://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymapreadonly-has