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;