Class GPosTable.CoverageTable.Format1
public sealed class GPosTable.CoverageTable.Format1 : GPosTable.CoverageTable, IReadOnlyDictionary<ushort, int>, IReadOnlyCollection<KeyValuePair<ushort, int>>, IEnumerable<KeyValuePair<ushort, int>>, IEnumerable
- Inheritance
-
GPosTable.CoverageTable.Format1
- Implements
- Inherited Members
Constructors
Format1(ReadOnlySpan<byte>)
public Format1(ReadOnlySpan<byte> span)
Parameters
spanReadOnlySpan<byte>
Properties
Count
Gets the number of elements in the collection.
public override 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 override 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 override 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 override 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 override 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 override IEnumerator<KeyValuePair<ushort, int>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<ushort, int>>
An enumerator that can be used to iterate through the collection.
TryGetValue(ushort, out int)
Gets the value that is associated with the specified key.
public override 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.