alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    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
    object
    AutocompleteSearchBehavior
    Implements
    IAutocompleteSearchBehavior
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.Inputs
    Assembly: Syncfusion.Maui.Inputs.dll
    Syntax
    public class AutocompleteSearchBehavior : 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
    int

    The highlighted index.

    Implements

    IAutocompleteSearchBehavior
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved