Label.ImageKey Label.ImageKey Label.ImageKey Label.ImageKey Property

定义

获取或设置 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

属性值

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

注解

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

适用于