FontFacePalette Class
A color palette of a font face (https://drafts.csswg.org/css-font-loading/#fontfacepalette): its colors.
public sealed class FontFacePalette : IEnumerable<string>, IReadOnlyCollection<string>, IReadOnlyList<string>, IEnumerableProperties
| Name | Description |
|---|---|
| Count | Gets the number of colors of the palette. |
| Length | Gets the number of colors of the palette. |
| UsableWithDarkBackground | Gets whether the palette is designed for a dark background. |
| UsableWithLightBackground | Gets whether the palette is designed for a light background. |
Count
FontFaceDetails.csLength
FontFaceDetails.csGets the number of colors of the palette.
public uint Length { get; }UsableWithDarkBackground
FontFaceDetails.csGets whether the palette is designed for a dark background.
public bool UsableWithDarkBackground { get; }UsableWithLightBackground
FontFaceDetails.csGets whether the palette is designed for a light background.
public bool UsableWithLightBackground { get; }Indexers
| Name | Description |
|---|---|
| this[int] | Gets the color at the given index. |
| this[uint] | Gets the color at the given index. |
ItemAt overloads
this[int]
FontFaceDetails.csthis[uint]
FontFaceDetails.csGets the color at the given index.
Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| System.Collections.Generic.IReadOnlyList<System.String>.get_Item(int) | |
| System.Collections.IEnumerable.GetEnumerator() |
GetEnumerator()
FontFaceDetails.csReturns an enumerator that iterates through the collection.
public IEnumerator<string> GetEnumerator()Returns
IEnumerator<string> An enumerator that can be used to iterate through the collection.