Label.ImageKey 屬性

定義

取得或設定影像在 ImageList 中的索引鍵存取子 (Accessor)。Gets or sets the key accessor for the image in the ImageList.

public:
 property System::String ^ ImageKey { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.ImageKeyConverter))]
public string ImageKey { get; set; }
member this.ImageKey : string with get, set
Public Property ImageKey As String

屬性值

表示影像按鍵的字串。A string representing the key of the image.

屬性

備註

ImageKey 屬性會從影像清單中指定要在 Label上顯示的影像。The ImageKey property specifies the image from the image list to display on the Label.

適用於