LabelControlAppearanceObject.ImageList Property
Gets or sets the source of images to be displayed within the label.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[Browsable(false)]
[DefaultValue(null)]
[EditorBrowsable(EditorBrowsableState.Never)]
public object ImageList { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Object | null | An object that is an image collection providing images for the LabelControl. |
Remarks
The ImageList property accepts the following image collections:
- ImageCollection - Supports image transparency.
- SharedImageCollection - Supports image transparency. Allows you to share images between controls within multiple forms.
- SvgImageCollection - Stores vector icons that can scale without losing their quality on high resolution devices.
- ImageList.
After a source of images has been specified, you can use the following properties to specify images to be displayed within the label control when it’s in different states:
- LabelControlAppearanceObject.ImageIndex
- LabelControlAppearanceObject.DisabledImageIndex
- LabelControlAppearanceObject.HoverImageIndex
- LabelControlAppearanceObject.PressedImageIndex
Alternatively, you can provide images directly via the AppearanceObject.Image,LabelControlAppearanceObject.DisabledImage,LabelControlAppearanceObject.HoverImage and LabelControlAppearanceObject.PressedImageproperties.
The image’s alignment is specified by the LabelControlAppearanceObject.ImageAlign property. To specify the alignment of the image relative to the label’s text, use the LabelControl.ImageAlignToText property.