ColumnHeader.ImageKey 屬性

定義

取得或設定顯示在資料行中影像的索引鍵。

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; }
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.ImageKeyConverter))>]
member this.ImageKey : string with get, set
Public Property ImageKey As String

屬性值

顯示在資料行中影像的索引鍵。

屬性

備註

ImageKeyImageIndex 屬性互斥,這表示如果已設定,另一個屬性會設定為不正確值並忽略。 如果您設定 ImageKey 屬性, ImageIndex 則屬性會自動設定為 -1。 或者,如果您設定 ImageIndex 屬性,會自動 ImageKey 將 設定為空字串 (「」「) 。

與 相關聯的 ColumnHeader 映射通常用來指出狀態資訊。

適用於