Table of Contents

TTMSFNCDataGridRenderer.HilightText Method

Wraps all occurrences of AText in AValue with HTML highlight markup. Used internally for filter-match highlighting.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

function HilightText(ACaseSensitive: Boolean; AValue, AText: string): string;

Parameters

Name Description
ACaseSensitive When True, matches text using case-sensitive comparison.
AValue Source text that may contain matches.
AText Text to highlight inside AValue.

Returns

The source text with matching fragments wrapped in highlight markup.