Skip to main content
Table of Contents

TTMSFNCDataGridProgressBarCell.XYToAnchor Method

Returns the anchor (href) under the given position in the HTML text of the cell.

API unit family: TMSFNCDataGridCell Declaring type: TTMSFNCDataGridProgressBarCell Inherited from: TTMSFNCDataGridCell

Syntax

FMX.TMSFNCDataGridCell.hppPascalC++
function XYToAnchor(X, Y: Single): string;
System::UnicodeString __fastcall XYToAnchor(float X, float Y);

Remarks

The text is laid out in TextRect with the layout font and alignment, without word wrapping.

Parameters

Name Description
X Horizontal position in the grid's local coordinate space (the same space as Rect).
Y Vertical position in the grid's local coordinate space.

Returns

The anchor target at the position, or an empty string when the text is not HTML or no anchor is hit.