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>, IEnumerable
Implements

Properties

NameDescription
CountGets the number of colors of the palette.
LengthGets the number of colors of the palette.
UsableWithDarkBackgroundGets whether the palette is designed for a dark background.
UsableWithLightBackgroundGets whether the palette is designed for a light background.

Gets the number of colors of the palette.

public int Count { get; }

Property value

int

Gets the number of colors of the palette.

public uint Length { get; }

UsableWithDarkBackground

FontFaceDetails.cs

Gets whether the palette is designed for a dark background.

public bool UsableWithDarkBackground { get; }

UsableWithLightBackground

FontFaceDetails.cs

Gets whether the palette is designed for a light background.

public bool UsableWithLightBackground { get; }

Indexers

NameDescription
this[int]Gets the color at the given index.
this[uint]Gets the color at the given index.

ItemAt overloads

Gets the color at the given index.

public string this[int index] { get; }
Parameters
index int
Property value

string

Gets the color at the given index.

public string this[uint index] { get; }

Methods

NameDescription
GetEnumerator()Returns an enumerator that iterates through the collection.
System.Collections.Generic.IReadOnlyList<System.String>.get_Item(int)
System.Collections.IEnumerable.GetEnumerator()

GetEnumerator()

FontFaceDetails.cs

Returns 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.

System.Collections.Generic.IReadOnlyList<System.String>.get_Item(int)

string IReadOnlyList<string>.get_Item(int index)

Parameters

index int

Returns

string

No documentation is available.

System.Collections.IEnumerable.GetEnumerator()

FontFaceDetails.cs
IEnumerator IEnumerable.GetEnumerator()

No documentation is available.