PictureEdit.Image Property

Sets or gets the image displayed by the editor.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Bindable(false)]
[DXCategory("Appearance")]
[DefaultValue(null)]
public virtual Image Image { get; set; }
<Bindable(False)>
<DXCategory("Appearance")>
<DefaultValue(Nothing)>
Public Overridable Property Image As Image

Property Value

Type Default Description
Image

null

A Image object representing the image displayed by the picture editor.

Remarks

The Image property value is equivelant to the PictureEdit.EditValue property. The property is declared to avoid type conversion when accessing the image displayed by the editor.

The following example assigns an image to the control.

pictureEdit1.Image = Image.FromFile("workspace.png");
See Also