Back to Devexpress

BaseListBoxControl.IncrementalSearch Property

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-e2cb6d58.md

latest2.3 KB
Original Source

BaseListBoxControl.IncrementalSearch Property

Gets or sets whether incremental searching for items is enabled.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public virtual bool IncrementalSearch { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Overridable Property IncrementalSearch As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to activate incremental search; otherwise, false.

|

Remarks

The incremental search feature allows an end-user to quickly locate items by typing the initial characters of the item’s text. The search is performed in the forward direction. Once an item that matches the search criteria has been found, an end-user can continue searching for the next item matching the same criteria. To continue searching in the forward or backward direction, press the CTRL+DOWN ARROW and CTRL+UP ARROW keys, respectively.

The following example activates the DevExpress ListBoxControl‘s incremental search:

csharp
void checkEdit1_CheckedChanged(object sender, System.EventArgs e)
{
    listBoxControl1.IncrementalSearch = checkEdit1.Checked;
}
vb
Private Sub checkEdit1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs)
    listBoxControl1.IncrementalSearch = checkEdit1.Checked
End Sub

See Also

BaseListBoxControl Class

BaseListBoxControl Members

DevExpress.XtraEditors Namespace