System.Types.TRect.Contains

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Contains(const Pt: TPoint): Boolean; overload;
function Contains(const R: TRect): Boolean; overload;

C++

bool Contains(const TPoint& p) const _ALWAYS_INLINE {
bool Contains(const TRect& r) const _ALWAYS_INLINE {

Properties

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

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.

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