Skip to main content
Table of Contents

TTMSFNCBloxBaseLine.PointInElement Method

Determines whether a point lies on or close to the line.

API unit family: TMSFNCBloxCoreLine Declaring type: TTMSFNCBloxBaseLine Inherited from: TTMSFNCBloxLine

Syntax

FMX.TMSFNCBloxCoreLine.hppPascalC++
function PointInElement(Path: TTMSFNCBloxPath; Pos: TTMSFNCBloxPoint): boolean; override;
virtual bool __fastcall PointInElement(Fmx::Tmsfncbloxcoreelement::TTMSFNCBloxPath* Path, const TTMSFNCBloxPoint &Pos);

Parameters

Name Description
Path Optional path used for hit testing; not required for line elements.
Pos The point to test, in element coordinates.

Returns

True when the point is on or near one of the line segments.