System.Windows.Forms.ColumnHeader.ImageKey Property

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

Syntax

[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.ImageKeyConverter))]
[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.DefaultValue("")]
public string ImageKey { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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

If ColumnHeader.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 System.Windows.Forms.ColumnHeader is typically used to indicate the state information.

Requirements

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