CharacterMetricsDictionary CharacterMetricsDictionary CharacterMetricsDictionary CharacterMetricsDictionary Class

定義

代表以 Unicode 純量值編寫索引之印表機字型的 CharacterMetrics 物件字典。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))
繼承
CharacterMetricsDictionaryCharacterMetricsDictionaryCharacterMetricsDictionaryCharacterMetricsDictionary
實作

屬性

Count Count Count Count

取得集合中的項目數。Gets the number of elements in the collection.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得值,指出 CharacterMetricsDictionary 是否唯讀。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

取得 CharacterMetricsDictionary 中的字元碼集合。Gets a collection of character codes from CharacterMetricsDictionary.

Values Values Values Values

取得 CharacterMetrics 中的 CharacterMetricsDictionary 值集合。Gets the collection of CharacterMetrics values in the CharacterMetricsDictionary.

方法

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

將字元碼和關聯的 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>)

將字元碼和關聯的 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()

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

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

根據指定的字元碼,移除 CharacterMetricsDictionary 中的項目。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>)

根據指定的索引鍵/值組,移除 CharacterMetricsDictionary 中的項目。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)

擷取字典中特定字元碼值的 CharacterMetrics 值。Retrieves the CharacterMetrics value in the dictionary for a specified character code value.

明確介面實作

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

如需這個成員的說明,請參閱 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

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

如需這個成員的說明,請參閱 IsSynchronizedFor a description of this member, see IsSynchronized.

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

如需這個成員的說明,請參閱 SyncRootFor a description of this member, see SyncRoot.

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

如需這個成員的說明,請參閱 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)

如需這個成員的說明,請參閱 Contains(Object)For a description of this member, see Contains(Object).

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

如需這個成員的說明,請參閱 GetEnumerator()For a description of this member, see GetEnumerator().

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

如需這個成員的說明,請參閱 IsFixedSizeFor a description of this member, see IsFixedSize.

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

如需這個成員的說明,請參閱 Item[Object]For a description of this member, see Item[Object].

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

如需這個成員的說明,請參閱 KeysFor a description of this member, see Keys.

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

如需這個成員的說明,請參閱 Remove(Object)For a description of this member, see Remove(Object).

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

如需這個成員的說明,請參閱 ValuesFor a description of this member, see Values.

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

如需這個成員的說明,請參閱 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>)

傳回DataTable,其中包含副本DataRow物件,指定輸入IEnumerable<T>物件其中泛型參數TDataRowReturns 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)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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)

複本DataRow至指定的物件DataTable,根據輸入IEnumerable<T>物件其中泛型參數TDataRowCopies 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)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

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

篩選的項目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)

將轉換IEnumerableIQueryableConverts 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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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. 集合中只會包含具有相符之 XName 的項目。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.

適用於