Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemPictureEdit() Constructor

In This Article

Initializes a new RepositoryItemPictureEdit class instance with default settings.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public RepositoryItemPictureEdit()

#Remarks

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

When a PictureEdit control is created, the constructor is automatically invoked to create and initiate a RepositoryItemPictureEdit object exposed via the control’s PictureEdit.Properties property. Generally, you do not need to call the RepositoryItemPictureEdit constructor manually unless you have to create picture 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 picture edit control as an editor for the Logo column in the Grid Control control:

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