Skip to main content
Table of Contents

TTMSFNCDataGridRenderer.HilightCells Method

Wraps occurrences of AHilightText in highlight markup in the cells covered by AOptions.

API unit family: TMSFNCDataGridRenderer Declaring type: TTMSFNCDataGridRenderer

Syntax

FMX.TMSFNCDataGridRenderer.hppPascalC++
procedure HilightCells(AHilightText: string; AOptions: TTMSFNCDataGridHilightOptions);
void __fastcall HilightCells(System::UnicodeString AHilightText, const TTMSFNCDataGridHilightOptions &AOptions);

Remarks

The markup is written into the cell values themselves, so it persists across scrolling and repainting and is included when the data is saved or copied, until it is removed with UnhilightCells. Highlight and mark (MarkCells) use different tags and can be combined. Only base cells of merged ranges are processed.

Parameters

Name Description
AHilightText Text to search for and highlight.
AOptions Scope (Mode: a single cell, a column, a row or the whole grid, with Column/Row identifying the target), CaseSensitive, FullText, and IncludeFixed to include fixed cells. Start from DefaultHilightOptions.