Back to Devexpress

RepositoryItemAnyControl.Control Property

windowsforms-devexpress-dot-xtraeditors-dot-customeditor-dot-repositoryitemanycontrol-2203add9.md

latest2.7 KB
Original Source

RepositoryItemAnyControl.Control Property

Gets or sets the control displayed by the current RepositoryItemAnyControl object.

Namespace : DevExpress.XtraEditors.CustomEditor

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public IAnyControlEdit Control { get; set; }
vb
Public Property Control As IAnyControlEdit

Property Value

TypeDescription
DevExpress.XtraEditors.CustomEditor.IAnyControlEdit

The control displayed by the current RepositoryItemAnyControl object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Control property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-image-slider-cell-editor/CS/WindowsFormsApplication202/ImageSliderHelper.cs#L27

csharp
view = grid.MainView as GridView;
repository.Control = slider;
view.Columns["Image"].ColumnEdit = repository;

winforms-grid-image-slider-cell-editor/VB/WindowsFormsApplication202/ImageSliderHelper.vb#L31

vb
view = TryCast(grid.MainView, GridView)
repository.Control = slider
view.Columns("Image").ColumnEdit = repository

See Also

RepositoryItemAnyControl Class

RepositoryItemAnyControl Members

DevExpress.XtraEditors.CustomEditor Namespace