RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Classes.Bounds Function

Creates a TRect structure from the top-left coordinate, and width and height values of a rectangle.

Pascal
function Bounds(ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer): TRect;
C++
TRect Bounds(int ALeft, int ATop, int AWidth, int AHeight);

Classes

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

Note: Bounds is a useful alternative to Rect if the rectangle coordinates would have to be calculated.
 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!