Vcl.Forms.TCustomForm.AlignControls
Delphi
procedure AlignControls(AControl: TControl; var Rect: TRect); override;
C++
virtual void __fastcall AlignControls(Vcl::Controls::TControl* AControl, System::Types::TRect &Rect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TCustomForm |
Description
Aligns all child controls of the form that fall within a specified rectangle.
Use AlignControls to align all controls within an area of the form. Specify the area in which to align the controls as the value of the Rect parameter.
AlignControls uses the Align property value for each child control to determine how to align it. The AControl parameter can be nil (Delphi) or NULL (C++). If you specify a control in AControl, that control takes precedence in alignment over other, similarly aligned controls.