ImageList.ImageCollection.SetKeyName(Int32, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定集合中圖片的鍵值。
public:
void SetKeyName(int index, System::String ^ name);
public void SetKeyName(int index, string name);
member this.SetKeyName : int * string -> unit
Public Sub SetKeyName (index As Integer, name As String)
參數
- index
- Int32
集合中影像的零基索引。
- name
- String
要設定為影像鍵的影像名稱。
例外狀況
指定的索引小於 0 或大於或等於 Count。
備註
影像的名稱對應於其在 ImageList.ImageCollection中的鍵。 圖片鍵不區分大小寫。