RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Types.Rect Function

Creates a TRect structure from a set of coordinates.

Pascal
function Rect(Left: Integer; Top: Integer; Right: Integer; Bottom: Integer): TRect;
C++
TRect Rect(int Left, int Top, int Right, int Bottom);

Call Rect to create a TRect that represents the rectangle with the specified coordinates. Use Rect to construct parameters for functions that require TRect, rather than setting up local variables for each parameter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!