procedure SetBounds(X, Y, AWidth, AHeight: Single); virtual;
virtual void __fastcall SetBounds(float X, float Y, float AWidth, float AHeight);
Sets the boundaries of the current control.
Use SetBounds to change all of the control's boundary properties at one time.
AWidth specifies the value of the control's Width.
AHeight specifies the value of the control's Height.
The same effect can be achieved by setting the Position, Width, and Height properties separately, but SetBounds changes all properties at once, ensuring that the control will not repaint between changes.
After setting the boundary properties, SetBounds specifies to the control to maintain the alignment of the control within its parent and of its children within it. The given parameter does not necessarily reflect in the Position, Width, and Height properties. The properties can be updated when the alignment is applied.