[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Objects' (#rtl)

TRect.Contains

Determine if a point is inside the rectangle

Declaration

Source position: objects.pp line 238

function TRect.Contains(

  P: TPoint

):Boolean;

Description

Containsreturns Trueif the point Pis contained in the rectangle (including borders), Falseotherwise.

Errors

None.

See also

TRect.Intersect

  

Reduce rectangle to intersection with another rectangle

TRect.Equals

  

Do the corners of the rectangles match