CharacterMetricsDictionary Class
Definition
Represents a dictionary of CharacterMetrics objects for a device font that is indexed by Unicode scalar values.
public ref class CharacterMetricsDictionary sealed : System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<int, System::Windows::Media::CharacterMetrics ^>>, System::Collections::Generic::IDictionary<int, System::Windows::Media::CharacterMetrics ^>, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<int, System::Windows::Media::CharacterMetrics ^>>, System::Collections::IDictionary
public sealed class CharacterMetricsDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<int,System.Windows.Media.CharacterMetrics>>, System.Collections.Generic.IDictionary<int,System.Windows.Media.CharacterMetrics>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<int,System.Windows.Media.CharacterMetrics>>, System.Collections.IDictionary
type CharacterMetricsDictionary = class
interface IDictionary<int, CharacterMetrics>
interface ICollection<KeyValuePair<int, CharacterMetrics>>
interface seq<KeyValuePair<int, CharacterMetrics>>
interface IEnumerable
interface IDictionary
interface ICollection
Public NotInheritable Class CharacterMetricsDictionary
Implements ICollection(Of KeyValuePair(Of Integer, CharacterMetrics)), IDictionary, IDictionary(Of Integer, CharacterMetrics), IEnumerable(Of KeyValuePair(Of Integer, CharacterMetrics))
- Inheritance
-
CharacterMetricsDictionary
- Implements
Properties
Count |
Gets the number of elements in the collection. |
IsReadOnly |
Gets a value indicating whether the CharacterMetricsDictionary is read-only. |
Item[Int32] |
Gets or sets a value for the item in the collection that matches a specified key. |
Keys |
Gets a collection of character codes from CharacterMetricsDictionary. |
Values |
Gets the collection of CharacterMetrics values in the CharacterMetricsDictionary. |
Methods
Add(Int32, CharacterMetrics) |
Adds a character code and associated CharacterMetrics value to the collection. |
Add(KeyValuePair<Int32,CharacterMetrics>) |
Adds a character code and associated CharacterMetrics value to the collection using a key/value pair. |
Clear() |
Removes all elements from the collection. |
Contains(KeyValuePair<Int32,CharacterMetrics>) |
Determines whether the collection contains the specified key/value pair. |
ContainsKey(Int32) |
Determines whether the collection contains the specified character code. |
CopyTo(KeyValuePair<Int32,CharacterMetrics>[], Int32) |
Copies the items in the collection to an array, starting at a specific array index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(Int32) |
Removes the element from CharacterMetricsDictionary based on the specified character code. |
Remove(KeyValuePair<Int32,CharacterMetrics>) |
Removes the element from CharacterMetricsDictionary based on the specified key/value pair. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
TryGetValue(Int32, CharacterMetrics) |
Retrieves the CharacterMetrics value in the dictionary for a specified character code value. |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32) |
For a description of this member, see CopyTo(Array, Int32). |
ICollection.IsSynchronized |
For a description of this member, see IsSynchronized. |
ICollection.SyncRoot |
For a description of this member, see SyncRoot. |
IDictionary.Add(Object, Object) |
For a description of this member, see Add(Object, Object). |
IDictionary.Contains(Object) |
For a description of this member, see Contains(Object). |
IDictionary.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
IDictionary.IsFixedSize |
For a description of this member, see IsFixedSize. |
IDictionary.Item[Object] |
For a description of this member, see Item[Object]. |
IDictionary.Keys |
For a description of this member, see Keys. |
IDictionary.Remove(Object) |
For a description of this member, see Remove(Object). |
IDictionary.Values |
For a description of this member, see Values. |
IEnumerable.GetEnumerator() |
For a description of this member, see GetEnumerator(). |
Extension Methods
Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) |
Tries to remove the value with the specified |
TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) |
Tries to add the specified |
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Ancestors<T>(IEnumerable<T>) |
Returns a collection of elements that contains the ancestors of every node in the source collection. |
Ancestors<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. |
DescendantNodes<T>(IEnumerable<T>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
Descendants<T>(IEnumerable<T>) |
Returns a collection of elements that contains the descendant elements of every element and document in the source collection. |
Descendants<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
Elements<T>(IEnumerable<T>) |
Returns a collection of the child elements of every element and document in the source collection. |
Elements<T>(IEnumerable<T>, XName) |
Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
InDocumentOrder<T>(IEnumerable<T>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |