System.Classes.Bounds
Delphi
function Bounds(ALeft, ATop, AWidth, AHeight: Integer): TRect;
C++
extern DELPHI_PACKAGE System::Types::TRect __fastcall Bounds(int ALeft, int ATop, int AWidth, int AHeight);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | System.Classes |
Description
Creates a TRect structure from the top-left coordinate, and width and height values of a rectangle.
Call Bounds to create a TRect that represents the rectangle with the specified values. Use Rect to construct parameters for functions that require TRect, 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.