Back to Devexpress

RepositoryItemSearchControl.Buttons Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemsearchcontrol-9923efb0.md

latest2.4 KB
Original Source

RepositoryItemSearchControl.Buttons Property

Provides access to the collection of buttons in the current SearchControl.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Behavior")]
public SearchControlButtonCollection Buttons { get; }
vb
<DXCategory("Behavior")>
Public ReadOnly Property Buttons As SearchControlButtonCollection

Property Value

TypeDescription
DevExpress.XtraEditors.Repository.SearchControlButtonCollection

The SearchControlButtonCollection object that represents the collection of EditorButton objects.

|

Remarks

To display a custom button in the SearchControl, create an EditorButton object, specify its settings and add it to the Buttons collection.

Handle the RepositoryItemButtonEdit.ButtonClick or ButtonEdit.ButtonClick events to respond to a button click within the SearchControl.

See Also

EditorButton

RepositoryItemButtonEdit.ButtonClick

ButtonEdit.ButtonClick

RepositoryItemSearchControl Class

RepositoryItemSearchControl Members

DevExpress.XtraEditors.Repository Namespace