語言

CharacterMetricsDictionary.Remove 方法

定義

根據指定的字元代碼移除該元素 CharacterMetricsDictionary 。

多載

名稱 Description
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 值的鍵值對。

傳回

true 若 CharacterMetrics 該項目成功刪除;否則 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 值,代表字元代碼。

傳回

true 若 CharacterMetrics 該項目成功刪除;否則 false。

實作

適用於