menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SfAutocomplete - API Reference

    Show / Hide Table of Contents

    Class SfAutocomplete

    SfAutocomplete provides a simpler way to complete the text based on the characters that the user has entered before. It also provides option to choose a suggestion from drop down or append a suggestion to the text directly.

    Inheritance
    System.Object
    SfView
    SfDropdownEntry
    DropDownListBase
    SfAutocomplete
    Implements
    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<Microsoft.Maui.IView>
    System.Collections.Generic.ICollection<Microsoft.Maui.IView>
    System.Collections.Generic.IEnumerable<Microsoft.Maui.IView>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Inherited Members
    DropDownListBase.ItemsSourceProperty
    DropDownListBase.ItemTemplateProperty
    DropDownListBase.DisplayMemberPathProperty
    DropDownListBase.TextMemberPathProperty
    DropDownListBase.SelectedValuePathProperty
    DropDownListBase.SelectedValueProperty
    DropDownListBase.SelectedItemProperty
    DropDownListBase.TextProperty
    DropDownListBase.OnPropertyChanged(String)
    DropDownListBase.Text
    DropDownListBase.ItemsSource
    DropDownListBase.ItemTemplate
    DropDownListBase.DisplayMemberPath
    DropDownListBase.TextMemberPath
    DropDownListBase.SelectedValuePath
    DropDownListBase.SelectedValue
    DropDownListBase.SelectedItem
    DropDownListBase.SelectionChanged
    DropDownListBase.Completed
    DropDownListBase.DropDownClosed
    SfDropdownEntry.IsDropDownOpenProperty
    SfDropdownEntry.PlaceholderProperty
    SfDropdownEntry.PlaceholderColorProperty
    SfDropdownEntry.ClearButtonIconColorProperty
    SfDropdownEntry.StrokeProperty
    SfDropdownEntry.IsClearButtonVisibleProperty
    SfDropdownEntry.MaxDropDownHeightProperty
    SfDropdownEntry.CursorPositionProperty
    SfDropdownEntry.FontSizeProperty
    SfDropdownEntry.FontFamilyProperty
    SfDropdownEntry.FontAttributesProperty
    SfDropdownEntry.TextColorProperty
    SfDropdownEntry.OnFontChanged(Font, Font)
    SfDropdownEntry.Focus()
    SfDropdownEntry.Unfocus()
    SfDropdownEntry.ArrangeContent(Rect)
    SfDropdownEntry.MeasureContent(Double, Double)
    SfDropdownEntry.OnDraw(ICanvas, RectF)
    SfDropdownEntry.OnDropdownOpening()
    SfDropdownEntry.IsClearButtonVisible
    SfDropdownEntry.Placeholder
    SfDropdownEntry.PlaceholderColor
    SfDropdownEntry.CursorPosition
    SfDropdownEntry.ClearButtonIconColor
    SfDropdownEntry.MaxDropDownHeight
    SfDropdownEntry.Stroke
    SfDropdownEntry.FontSize
    SfDropdownEntry.FontAttributes
    SfDropdownEntry.FontFamily
    SfDropdownEntry.TextColor
    SfView.OnBindingContextChanged()
    SfView.MeasureOverride(Double, Double)
    SfView.ArrangeOverride(Rect)
    SfView.OnMeasure(Double, Double)
    SfView.IDrawableLayout.InvalidateDrawable()
    SfView.Children
    SfView.ClipToBounds
    SfView.Padding
    SfView.IDrawableLayout.DrawingOrder
    Namespace: Syncfusion.Maui.Inputs
    Assembly: Syncfusion.Maui.Inputs.dll
    Syntax
    public class SfAutocomplete : DropDownListBase, IDrawableLayout, IDrawable, IAbsoluteLayout, ILayout, IView, IElement, ITransform, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, IVisualTreeElement, ITouchListener, ITextElement, IKeyboardListener, IParentThemeElement, IThemeElement

    Constructors

    SfAutocomplete()

    Initializes a new instance of the SfAutocomplete class.

    Declaration
    public SfAutocomplete()

    Fields

    FilterBehaviorProperty

    Identifies FilterBehavior bindable property.

    Declaration
    public static readonly BindableProperty FilterBehaviorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the FilterBehavior bindable property.

    SearchBehaviorProperty

    Identifies SearchBehavior bindable property.

    Declaration
    public static readonly BindableProperty SearchBehaviorProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the SearchBehavior bindable property.

    TextSearchModeProperty

    Identifies TextSearchMode bindable property.

    Declaration
    public static readonly BindableProperty TextSearchModeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for the TextSearchMode bindable property.

    Properties

    FilterBehavior

    Filter behaviour property.

    Declaration
    public IAutocompleteFilterBehavior FilterBehavior { get; set; }
    Property Value
    Type Description
    IAutocompleteFilterBehavior

    IsDropDownOpen

    Gets or sets a value indicating whether the drop down is open or close.

    Declaration
    public bool IsDropDownOpen { get; }
    Property Value
    Type Description
    System.Boolean

    The default value is false.

    SearchBehavior

    Search behaviour property.

    Declaration
    public IAutocompleteSearchBehavior SearchBehavior { get; set; }
    Property Value
    Type Description
    IAutocompleteSearchBehavior

    TextSearchMode

    Gets or sets the TextSearchMode to search the item which matches the search text either with the beginning of the texts or contains the search text in the list.

    Declaration
    public AutocompleteTextSearchMode TextSearchMode { get; set; }
    Property Value
    Type Description
    AutocompleteTextSearchMode

    A value that indicates the text search behavior for a Autocomplete control. The default value is StartsWith. Fields:

    EnumerationDescription
    StartsWithSearch the item which matches the search text with the beginning of the texts in the list.
    ContainsSearch the item which contains the search text in the list.

    Methods

    OnHandlerChanged()

    Handler changed.

    Declaration
    protected override void OnHandlerChanged()
    Overrides
    DropDownListBase.OnHandlerChanged()

    Implements

    IDrawableLayout
    Microsoft.Maui.Graphics.IDrawable
    Microsoft.Maui.IAbsoluteLayout
    Microsoft.Maui.ILayout
    Microsoft.Maui.IView
    Microsoft.Maui.IElement
    Microsoft.Maui.ITransform
    Microsoft.Maui.IContainer
    System.Collections.Generic.IList<>
    System.Collections.Generic.ICollection<>
    System.Collections.Generic.IEnumerable<>
    System.Collections.IEnumerable
    Microsoft.Maui.ISafeAreaView
    Microsoft.Maui.IPadding
    Microsoft.Maui.IVisualTreeElement
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved