System.Types.TRectF.Contains

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Contains(const Pt: TPointF): Boolean; overload;
function Contains(const R: TRectF): Boolean; overload;

C++

bool Contains(const TPointF& p) const _ALWAYS_INLINE {
bool Contains(const TRectF& r) const _ALWAYS_INLINE {

Properties

Type Visibility Source Unit Parent
function public
System.Types.pas
SystemTypes.h
System.Types TRectF

Description

Tests whether a point or a rectangle is located within the rectangle.

Contains returns True if the received parameter is located within the rectangle.

Note: A point located on the Top or Left side of the rectangle is considered to be within the rectangle, while one located on the Right or Bottom side is considered to be outside of the rectangle.

See Also