System.Classes.Rect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Rect(ALeft, ATop, ARight, ABottom: Integer): TRect;
function Rect(const ATopLeft, ABottomRight: TPoint): TRect;

C++

extern DELPHI_PACKAGE System::Types::TRect __fastcall Rect(int ALeft, int ATop, int ARight, int ABottom)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Creates a TRect structure from a set of coordinates.

Call Rect to create a TRect that represents the rectangle with the specified coordinates. Use Rect to construct a TRect with the parameters already set, rather than constructing a TRect and then setting up local variables for each parameter.

See Also

Code Examples