CharacterMetricsDictionary.Remove 方法

定義

根據指定的字元碼,移除 CharacterMetricsDictionary 中的項目。

多載

Remove(KeyValuePair<Int32,CharacterMetrics>)

根據指定的索引鍵/值組,移除 CharacterMetricsDictionary 中的項目。

Remove(Int32)

根據指定的字元碼,移除 CharacterMetricsDictionary 中的項目。

Remove(KeyValuePair<Int32,CharacterMetrics>)

重要

此 API 不符合 CLS 規範。

根據指定的索引鍵/值組,移除 CharacterMetricsDictionary 中的項目。

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

參數

item
KeyValuePair<Int32,CharacterMetrics>

代表字元碼以及和 CharacterMetrics 值相關聯的索引鍵/值組。

傳回

Boolean

如果成功刪除 CharacterMetrics 項目則為 true,否則為 false

實作

屬性

適用於

Remove(Int32)

根據指定的字元碼,移除 CharacterMetricsDictionary 中的項目。

public:
 virtual bool Remove(int key);
public bool Remove (int key);
abstract member Remove : int -> bool
override this.Remove : int -> bool
Public Function Remove (key As Integer) As Boolean

參數

key
Int32

型別 Int32 的值,表示字元碼。

傳回

Boolean

如果成功刪除 CharacterMetrics 項目則為 true,否則為 false

實作

適用於