windowsforms-devexpress-dot-xtraeditors-dot-repository-40959cf4.md
An item in an editor container’s repository used to create a SearchControl.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public class RepositoryItemSearchControl :
RepositoryItemMRUEdit
Public Class RepositoryItemSearchControl
Inherits RepositoryItemMRUEdit
The following members return RepositoryItemSearchControl objects:
Use RepositoryItemSearchControl objects to embed a SearchControl in bars and ribbons.
See the following topic to learn more on how repository items are used to embed editors into XtraGrid, XtraVerticalGrid, XtraTreeList, and XtraBars: Editors and Simple Controls.
Do the following to embed a SearchControl in a bar in code:
Create a BarEditItem and RepositoryItemSearchControl objects.
Assign the RepositoryItemSearchControl object to the BarEditItem.Edit property.
Use the AddItem method to add the created BarEditItem to a bar.
using DevExpress.XtraBars;
using DevExpress.XtraEditors.Repository;
RepositoryItemSearchControl repositoryItemSearchControl1 = new RepositoryItemSearchControl();
BarEditItem barEditItem1 = new BarEditItem();
barEditItem1.Edit = repositoryItemSearchControl1;
bar1.AddItem(barEditItem1);
Imports DevExpress.XtraBars
Imports DevExpress.XtraEditors.Repository
Dim repositoryItemSearchControl1 As New RepositoryItemSearchControl()
Dim barEditItem1 As New BarEditItem()
barEditItem1.Edit = repositoryItemSearchControl1
bar1.AddItem(barEditItem1)
The image below shows how to embed a SearchControl in a bar at design time.
Use the Client property to specify the control that should be filtered with the created SearchControl.
Show 12 items
Object MarshalByRefObject Component DevExpress.XtraEditors.ComponentBase RepositoryItem RepositoryItemTextEdit RepositoryItemButtonEdit RepositoryItemPopupBase RepositoryItemPopupBaseAutoSearchEdit RepositoryItemComboBox RepositoryItemMRUEdit RepositoryItemSearchControl
See Also