System.Windows.Forms.Label.ImageList Property

Gets or sets the System.Windows.Forms.ImageList that contains the images to display in the System.Windows.Forms.Label control.

Syntax

[System.ComponentModel.RefreshProperties(System.ComponentModel.RefreshProperties.Repaint)]
[System.ComponentModel.DefaultValue(null)]
public ImageList ImageList { 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 set to null.

Note:

The System.Windows.Forms.Label will not be garbage collected if its Label.ImageList is still referenced elsewhere. Set the Label.ImageList property of the System.Windows.Forms.Label to null to enable efficient garbage collection.

Requirements

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