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.Maui.Inputs
Assembly: Syncfusion.Maui.Inputs.dll
Syntax
public class AutocompleteSearchBehavior : Object, IAutocompleteSearchBehavior
Remarks
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. |