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.

Implements

Properties

NameDescription
CountGets the number of feature values.

Gets the number of feature values.

public int Count { get; }

Property value

int

Methods

NameDescription
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()

Removes all the feature values.

public void Clear()

Removes the feature value name. Returns whether it was defined.

public bool Delete(string featureValueName)

Parameters

featureValueName string

Returns

bool

Returns the values of the feature value name, or null.

public IReadOnlyList<uint>? Get(string featureValueName)

Parameters

featureValueName string

Returns

IReadOnlyList<uint>?

Enumerates the feature value names and their values, in insertion order.

public IEnumerator<KeyValuePair<string, IReadOnlyList<uint>>> GetEnumerator()

Returns whether the feature value name is defined.

public bool Has(string featureValueName)

Parameters

featureValueName string

Returns

bool

Set overloads

Set(string, IReadOnlyList<uint>)

CssFontFeatureValuesRule.cs

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.

public void Set(string featureValueName, IReadOnlyList<uint> values)

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.

public void Set(string featureValueName, uint values)

System.Collections.IEnumerable.GetEnumerator()

CssFontFeatureValuesRule.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.