Show: Delphi
C++
Display Preferences
FMX.Types.TControl.BoundsRect
From XE2 API Documentation
Delphi
property BoundsRect: TRectF read GetBoundsRect write SetBoundsRect;
C++
__property System::Types::TRectF BoundsRect = {read=GetBoundsRect, write=SetBoundsRect};
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| property | public | FMX.Types.pas FMX.Types.hpp |
FMX.Types | TControl |
Description
Specifies the bounding rectangle of the control.
The coordinates of the upper-left corner of the rectangle are (0,0), and the coordinates of the lower-right corner are (Width, Height).
For example:
R:=Control.BoundsRect;
The coordinates of the R rectangle are:
R.Left=0; R.Top=0; R.Right= Control.Width; R.Bottom= Control.Height;
When BoundsRect is set, the Position property is set to be the upper-left corner of the given bound rectangle, and the Width and Height of the control receive the values of the width and height of the given bound rectangle. For example:
Control.BoundsRect:=R;
The controls have the following properties:
Control.Position.X= R.Left; Control.Position.Y= R.Top; Control.Width= R.Width; Control.Height= R.Height;