System.Windows.Forms.Label.ImageIndex Property

Gets or sets the index value of the image displayed on the System.Windows.Forms.Label.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.TypeConverter(typeof(System.Windows.Forms.ImageIndexConverter))]
[System.ComponentModel.Localizable(true)]
[System.ComponentModel.Editor("System.Windows.Forms.Design.ImageIndexEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", typeof(System.Drawing.Design.UITypeEditor))]
[System.ComponentModel.DefaultValue(-1)]
public int ImageIndex { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The Label.ImageIndex and the Label.ImageList properties cannot be used at the same time as the Label.Image property. When the Label.ImageIndex property and Label.ImageList properties are used to display an image, the Label.Image property is automatically set to null.

Requirements

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