Class GPosTable.CoverageTable
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
keyushortThe key to locate.
Property Value
- int
The element that has the specified key in the read-only dictionary.
Exceptions
- ArgumentNullException
keyis null.- KeyNotFoundException
The property is retrieved and
keyis 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
keyushortThe key to locate.
Returns
- bool
true if the read-only dictionary contains an element that has the specified key; otherwise, false.
Exceptions
- ArgumentNullException
keyis 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
spanReadOnlySpan<byte>
Returns
TryGetValue(ushort, out int)
Gets the value that is associated with the specified key.
public abstract bool TryGetValue(ushort key, out int value)
Parameters
keyushortThe key to locate.
valueintWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the
valueparameter. 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
keyis null.