Class AutoCompleteSearchBehavior
Represents a search behavior for SfAutoComplete. Using the text entered in control, highlighted index gets calculated from the filtered items. We can override this and show custom highlight.
Inheritance
System.Object
    AutoCompleteSearchBehavior
  Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class AutoCompleteSearchBehavior : Object, IAutoCompleteSearchBehaviorRemarks
By default, the first item in the suggestion list gets highlighted.
Constructors
AutoCompleteSearchBehavior()
Declaration
public AutoCompleteSearchBehavior()Methods
GetHighlightIndex(SfAutoComplete, AutoCompleteSearchInfo)
Returns the index of the highlighted item in the DropDown of the SfAutoComplete.
Declaration
public virtual int GetHighlightIndex(SfAutoComplete source, AutoCompleteSearchInfo searchInfo)Parameters
| Type | Name | Description | 
|---|---|---|
| SfAutoComplete | source | The AutoComplete control. | 
| AutoCompleteSearchInfo | searchInfo | Contains details regarding search text and filtered items of AutoComplete control. | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | The highlighted index. |