CssFontFeatureValuesMap Class
https://drafts.csswg.org/css-fonts-4/#cssfontfeaturevaluesmap: the feature values of a feature value block of a @font-feature-values rule, by name, in insertion order.
public sealed class CssFontFeatureValuesMap : IEnumerable<KeyValuePair<string, IReadOnlyList<uint>>>, IReadOnlyCollection<KeyValuePair<string, IReadOnlyList<uint>>>, IEnumerable- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of feature values. |
Methods
| Name | Description |
|---|---|
| Clear() | Removes all the feature values. |
| Delete(string) | Removes the feature value name. Returns whether it was defined. |
| Get(string) | Returns the values of the feature value name, or null. |
| GetEnumerator() | Enumerates the feature value names and their values, in insertion order. |
| Has(string) | Returns whether the feature value name is defined. |
| Set(string, IReadOnlyList<uint>) | https://drafts.csswg.org/css-fonts-4/#dom-cssfontfeaturevaluesmap-set: defines the feature value name. Throws an InvalidAccessError when the number of values is not valid for the type of the feature value block. |
| Set(string, uint) | https://drafts.csswg.org/css-fonts-4/#dom-cssfontfeaturevaluesmap-set: defines the feature value name. Throws an InvalidAccessError when the number of values is not valid for the type of the feature value block. |
| System.Collections.IEnumerable.GetEnumerator() |
Clear()
CssFontFeatureValuesRule.csRemoves all the feature values.
public void Clear()Delete(string)
CssFontFeatureValuesRule.csGet(string)
CssFontFeatureValuesRule.csReturns the values of the feature value name, or null.
public IReadOnlyList<uint>? Get(string featureValueName)GetEnumerator()
CssFontFeatureValuesRule.csEnumerates the feature value names and their values, in insertion order.
public IEnumerator<KeyValuePair<string, IReadOnlyList<uint>>> GetEnumerator()Has(string)
CssFontFeatureValuesRule.csSet overloads
Set(string, IReadOnlyList<uint>)
CssFontFeatureValuesRule.cshttps://drafts.csswg.org/css-fonts-4/#dom-cssfontfeaturevaluesmap-set: defines the feature value name. Throws an InvalidAccessError when the number of values is not valid for the type of the feature value block.
public void Set(string featureValueName, IReadOnlyList<uint> values)Set(string, uint)
CssFontFeatureValuesRule.cshttps://drafts.csswg.org/css-fonts-4/#dom-cssfontfeaturevaluesmap-set: defines the feature value name. Throws an InvalidAccessError when the number of values is not valid for the type of the feature value block.