Table of Contents

TTMSFNCGraphics.PointInRect Method

Tests whether a floating-point point lies within a floating-point rectangle.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Overloads

Overload 1

Tests whether a floating-point point lies within a floating-point rectangle.

class function PointInRect(APoint: TPointF; ARect: TRectF): Boolean; overload; virtual;

Parameters

Name Description
APoint Floating-point point to test.
ARect Floating-point rectangle to test against.

Returns

True if APoint falls within or on the boundary of ARect.

Overload 2

Tests whether an integer point lies within an integer rectangle.

class function PointInRect(APoint: TPoint; ARect: TRect): Boolean; overload; virtual;

Parameters

Name Description
APoint Integer point to test.
ARect Integer rectangle to test against.

Returns

True if APoint falls within or on the boundary of ARect.