Bewerken

Delen via


CharacterMetricsDictionary.Add Method

Definition

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

Overloads

Add(KeyValuePair<Int32,CharacterMetrics>)

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

Add(Int32, CharacterMetrics)

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

Add(KeyValuePair<Int32,CharacterMetrics>)

Important

This API is not CLS-compliant.

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

public:
 virtual void Add(System::Collections::Generic::KeyValuePair<int, System::Windows::Media::CharacterMetrics ^> item);
[System.CLSCompliant(false)]
public void Add (System.Collections.Generic.KeyValuePair<int,System.Windows.Media.CharacterMetrics> item);
[<System.CLSCompliant(false)>]
abstract member Add : System.Collections.Generic.KeyValuePair<int, System.Windows.Media.CharacterMetrics> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<int, System.Windows.Media.CharacterMetrics> -> unit
Public Sub Add (item As KeyValuePair(Of Integer, CharacterMetrics))

Parameters

item
KeyValuePair<Int32,CharacterMetrics>

The key/value pair representing the character code and associated CharacterMetrics value.

Implements

Attributes

Applies to

Add(Int32, CharacterMetrics)

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

public:
 virtual void Add(int key, System::Windows::Media::CharacterMetrics ^ value);
public void Add (int key, System.Windows.Media.CharacterMetrics value);
abstract member Add : int * System.Windows.Media.CharacterMetrics -> unit
override this.Add : int * System.Windows.Media.CharacterMetrics -> unit
Public Sub Add (key As Integer, value As CharacterMetrics)

Parameters

key
Int32

A value of type Int32 representing the character code.

value
CharacterMetrics

A value of type CharacterMetrics.

Implements

Applies to