Label.ImageKey Property

Definition

获取或设置 ImageList 中的图像的键访问器。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

Property Value

String

一个表示图像的键的字符串。A string representing the key of the image.

Attributes

Remarks

ImageKey 属性指定要在 Label上显示的图像列表中的图像。The ImageKey property specifies the image from the image list to display on the Label.

Applies to