menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class HightLightType - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class HightLightType

    Specifies how search highlights are displayed for characters that match in list items during filtering.

    Inheritance
    System.Object
    HightLightType
    Namespace: Syncfusion.Blazor.DropDowns
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class HightLightType : Enum
    Remarks

    Used in components that provide matching text highlights, for example in the SfAutoComplete dropdown.

    Examples
    HightLightType type = HightLightType.Contains;

    Fields

    Contains

    Highlights characters that match anywhere within the item value (substring matching).

    Declaration
    public const HightLightType Contains
    Field Value
    Type Description
    HightLightType

    Highlight type for substring matches within list items.

    Remarks

    This is typically the default highlight mode.

    Examples
    HightLightType type = HightLightType.Contains;

    EndsWith

    Highlights only when the search term matches the end of the item value.

    Declaration
    public const HightLightType EndsWith
    Field Value
    Type Description
    HightLightType

    Highlight type for suffix-only matches.

    Remarks

    Highlights the suffix that matches in suggested items.

    Examples
    HightLightType type = HightLightType.EndsWith;

    StartsWith

    Highlights only when the search text matches the beginning of the item value.

    Declaration
    public const HightLightType StartsWith
    Field Value
    Type Description
    HightLightType

    Highlight type for prefix-only matches.

    Remarks

    Highlights the matching prefix in suggested items.

    Examples
    HightLightType type = HightLightType.StartsWith;
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved