Class ComboBoxSearchBehavior
Represents a search behavior for SfComboBox. Using the text entered in control, highlighted index gets calculated from the filtered items based on editable mode. We can override this and show custom highlight.
Inheritance
System.Object
    ComboBoxSearchBehavior
  Implements
Namespace: Syncfusion.UI.Xaml.Editors
Assembly: Syncfusion.Editors.WinUI.dll
Syntax
public class ComboBoxSearchBehavior : Object, IComboBoxSearchBehaviorConstructors
ComboBoxSearchBehavior()
Declaration
public ComboBoxSearchBehavior()Methods
GetHighlightIndex(SfComboBox, ComboBoxSearchInfo)
Returns the index of the highlighted item in the DropDown of the SfComboBox.
Declaration
public virtual int GetHighlightIndex(SfComboBox source, ComboBoxSearchInfo searchInfo)Parameters
| Type | Name | Description | 
|---|---|---|
| SfComboBox | source | The ComboBox control. | 
| ComboBoxSearchInfo | searchInfo | Contains details regarding search text and filtered items of ComboBox control. | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | The highlighted index. |