menu

Class ComboBoxSearchBehavior - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    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
    IComboBoxSearchBehavior
    Namespace: Syncfusion.UI.Xaml.Editors
    Assembly: Syncfusion.Editors.WinUI.dll
    Syntax
    public class ComboBoxSearchBehavior : Object, IComboBoxSearchBehavior

    Constructors

    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.

    Implements

    IComboBoxSearchBehavior
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved