ColumnHeader.ImageKey Właściwość

Definicja

Pobiera lub ustawia klucz obrazu wyświetlanego w kolumnie.

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

Wartość właściwości

Klucz obrazu wyświetlanego w kolumnie.

Atrybuty

Uwagi

Właściwości ImageKey i ImageIndex wykluczają się wzajemnie, co oznacza, że jeśli jest ustawiona, druga jest ustawiona na nieprawidłową wartość i ignorowana. Jeśli ustawisz ImageKey właściwość , właściwość zostanie automatycznie ustawiona ImageIndex na -1. Alternatywnie, jeśli ustawisz ImageIndex właściwość , ImageKey właściwość zostanie automatycznie ustawiona na pusty ciąg ("").

Obraz skojarzony z elementem ColumnHeader jest zwykle używany do wskazywania informacji o stanie.

Dotyczy