Skip to main content

RepositoryItemImageEdit() Constructor

Initializes a new RepositoryItemImageEdit class instance with default settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public RepositoryItemImageEdit()

Remarks

This constructor creates a new RepositoryItemImageEdit class instance and sets its properties to their default values.

When a ImageEdit control is created, the constructor is automatically invoked to create and initiate a RepositoryItemImageEdit object exposed via the control’s ImageEdit.Properties property. Generally, you do not need to call the RepositoryItemImageEdit constructor manually unless you have to create image edit controls for in-place editing (for use in the Grid Control or other DevExpress container controls).

The following code uses the constructor to assign a image edit control as an editor for the Logo column in the Grid Control control:

RepositoryItemImageEdit riMemoEdit = new RepositoryItemImageEdit();
gridControl1.RepositoryItems.Add(riImageEdit);
gridView1.Columns["Logo"].ColumnEdit = riImageEdit;
See Also