ColumnHeader::ImageKey Property

 

Gets or sets the key of the image displayed in the column.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
[TypeConverterAttribute((ImageKeyConverter^::typeid))]
property String^ ImageKey {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The key of the image displayed in the column.

The ImageKey and ImageIndex properties are mutually exclusive, meaning if one is set, the other is set to an invalid value and ignored.

If ImageKey is set to an invalid value, an image will not be displayed, and an exception will not be thrown.

The image associated with a ColumnHeader is typically used to indicate the state information.

.NET Framework
Available since 2.0
Return to top
Show: