Skip to main content
A newer version of this page is available. .

LabelControlAppearanceObject.Image Property

Stores the image that will be shown inside the LabelControl.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[Browsable(false)]
public override Image Image { get; set; }

Property Value

Type Description
Image

The image that will be shown inside the LabelControl.

Remarks

The code sample below illustrates how to display a custom image in a LabelControl element.


LabelControlAppearanceObject appearance = new LabelControlAppearanceObject();
appearance.Image = Image.FromFile("C:\\image.png");
labelControl1.Appearance.Assign(appearance);
See Also