Back to Devexpress

LookUpEditSearchHighlightEventArgs.SetHighlightRange(Func<String, String, Nullable<DisplayTextHighlightRange>>) Method

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-lookupeditsearchhighlighteventargs-dot-sethighlightrange-x28-func-string-string-nullable-displaytexthighlightrange-x29.md

latest2.1 KB
Original Source

LookUpEditSearchHighlightEventArgs.SetHighlightRange(Func<String, String, Nullable<DisplayTextHighlightRange>>) Method

Sets a specific highlight range.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public void SetHighlightRange(
    Func<string, string, DisplayTextHighlightRange?> getRangeFromDisplayTextAndFieldName
)
vb
Public Sub SetHighlightRange(
    getRangeFromDisplayTextAndFieldName As Func(Of String, String, DisplayTextHighlightRange?)
)

Parameters

NameTypeDescription
getRangeFromDisplayTextAndFieldNameFunc<String, String, Nullable<DevExpress.Data.DisplayTextHighlightRange>>

A function that must return a highlight range. A highlight range is a structure that contains the first hightlighted char position, and the length of highlighted charecters’ sequence.

|

See Also

LookUpEditSearchHighlightEventArgs Class

LookUpEditSearchHighlightEventArgs Members

DevExpress.XtraEditors.Controls Namespace