Table of Contents

Class GPosTable.CoverageTable

Namespace
Xui.Runtime.Software.Font
Assembly
Xui.Runtime.Software.dll

Represents a GPOS Coverage Table used in subtables to identify glyphs affected.

public abstract class GPosTable.CoverageTable : IReadOnlyDictionary<ushort, int>, IReadOnlyCollection<KeyValuePair<ushort, int>>, IEnumerable<KeyValuePair<ushort, int>>, IEnumerable
Inheritance
GPosTable.CoverageTable
Implements
Derived
Inherited Members

Properties

Count

Gets the number of elements in the collection.

public abstract int Count { get; }

Property Value

int

The number of elements in the collection.

this[ushort]

Gets the element that has the specified key in the read-only dictionary.

public abstract int this[ushort key] { get; }

Parameters

key ushort

The key to locate.

Property Value

int

The element that has the specified key in the read-only dictionary.

Exceptions

ArgumentNullException

key is null.

KeyNotFoundException

The property is retrieved and key is not found.

Keys

Gets an enumerable collection that contains the keys in the read-only dictionary.

public abstract IEnumerable<ushort> Keys { get; }

Property Value

IEnumerable<ushort>

An enumerable collection that contains the keys in the read-only dictionary.

Values

Gets an enumerable collection that contains the values in the read-only dictionary.

public abstract IEnumerable<int> Values { get; }

Property Value

IEnumerable<int>

An enumerable collection that contains the values in the read-only dictionary.

Methods

ContainsKey(ushort)

Determines whether the read-only dictionary contains an element that has the specified key.

public abstract bool ContainsKey(ushort key)

Parameters

key ushort

The key to locate.

Returns

bool

true if the read-only dictionary contains an element that has the specified key; otherwise, false.

Exceptions

ArgumentNullException

key is null.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public abstract IEnumerator<KeyValuePair<ushort, int>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<ushort, int>>

An enumerator that can be used to iterate through the collection.

Parse(ReadOnlySpan<byte>)

public static GPosTable.CoverageTable Parse(ReadOnlySpan<byte> span)

Parameters

span ReadOnlySpan<byte>

Returns

GPosTable.CoverageTable

TryGetValue(ushort, out int)

Gets the value that is associated with the specified key.

public abstract bool TryGetValue(ushort key, out int value)

Parameters

key ushort

The key to locate.

value int

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

bool

true if the object that implements the IReadOnlyDictionary<TKey, TValue> interface contains an element that has the specified key; otherwise, false.

Exceptions

ArgumentNullException

key is null.