RAD Studio VCL Reference
Classes.Bounds Function

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

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

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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!