CharacterMetricsDictionary CharacterMetricsDictionary CharacterMetricsDictionary 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
CharacterMetricsDictionaryCharacterMetricsDictionaryCharacterMetricsDictionaryCharacterMetricsDictionary
Implements

Properties

Count Count Count Count

Gets the number of elements in the collection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value indicating whether the CharacterMetricsDictionary is read-only.

Item[Int32] Item[Int32] Item[Int32] Item[Int32]

Gets or sets a value for the item in the collection that matches a specified key.

Keys Keys Keys Keys

Gets a collection of character codes from CharacterMetricsDictionary.

Values Values Values Values

Gets the collection of CharacterMetrics values in the CharacterMetricsDictionary.

Methods

Add(Int32, CharacterMetrics) Add(Int32, CharacterMetrics) Add(Int32, CharacterMetrics) Add(Int32, CharacterMetrics)

Adds a character code and associated CharacterMetrics value to the collection.

Add(KeyValuePair<Int32,CharacterMetrics>) Add(KeyValuePair<Int32,CharacterMetrics>) Add(KeyValuePair<Int32,CharacterMetrics>) Add(KeyValuePair<Int32,CharacterMetrics>)

Adds a character code and associated CharacterMetrics value to the collection using a key/value pair.

Clear() Clear() Clear() Clear()

Removes all elements from the collection.

Contains(KeyValuePair<Int32,CharacterMetrics>) Contains(KeyValuePair<Int32,CharacterMetrics>) Contains(KeyValuePair<Int32,CharacterMetrics>) Contains(KeyValuePair<Int32,CharacterMetrics>)

Determines whether the collection contains the specified key/value pair.

ContainsKey(Int32) ContainsKey(Int32) ContainsKey(Int32) ContainsKey(Int32)

Determines whether the collection contains the specified character code.

CopyTo(KeyValuePair<Int32,CharacterMetrics>[], Int32) CopyTo(KeyValuePair<Int32,CharacterMetrics>[], Int32) CopyTo(KeyValuePair<Int32,CharacterMetrics>[], Int32) CopyTo(KeyValuePair<Int32,CharacterMetrics>[], Int32)

Copies the items in the collection to an array, starting at a specific array index.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an enumerator that iterates through the collection.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Int32) Remove(Int32) Remove(Int32) Remove(Int32)

Removes the element from CharacterMetricsDictionary based on the specified character code.

Remove(KeyValuePair<Int32,CharacterMetrics>) Remove(KeyValuePair<Int32,CharacterMetrics>) Remove(KeyValuePair<Int32,CharacterMetrics>) Remove(KeyValuePair<Int32,CharacterMetrics>)

Removes the element from CharacterMetricsDictionary based on the specified key/value pair.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
TryGetValue(Int32, CharacterMetrics) TryGetValue(Int32, CharacterMetrics) TryGetValue(Int32, CharacterMetrics) TryGetValue(Int32, CharacterMetrics)

Retrieves the CharacterMetrics value in the dictionary for a specified character code value.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32) ICollection.CopyTo(Array, Int32)

For a description of this member, see CopyTo(Array, Int32).

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

For a description of this member, see IsSynchronized.

ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

For a description of this member, see SyncRoot.

IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object) IDictionary.Add(Object, Object)

For a description of this member, see Add(Object, Object).

IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object) IDictionary.Contains(Object)

For a description of this member, see Contains(Object).

IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator() IDictionary.GetEnumerator()

For a description of this member, see GetEnumerator().

IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize IDictionary.IsFixedSize

For a description of this member, see IsFixedSize.

IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object] IDictionary.Item[Object]

For a description of this member, see Item[Object].

IDictionary.Keys IDictionary.Keys IDictionary.Keys IDictionary.Keys

For a description of this member, see Keys.

IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object) IDictionary.Remove(Object)

For a description of this member, see Remove(Object).

IDictionary.Values IDictionary.Values IDictionary.Values IDictionary.Values

For a description of this member, see Values.

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

For a description of this member, see GetEnumerator().

Extension Methods

Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) Remove<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)
TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue) TryAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)
CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) 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) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) 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>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) 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) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) 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>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) 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) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) 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>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) 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>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to