Vcl.Controls.TWinControl.ArrangeControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ArrangeControl(AControl: TControl; const ParentSize: TPoint; AAlign: TAlign;  AAlignInfo: TAlignInfo; var Rect: TRect; UpdateAnchorOrigin: Boolean = False);

C++

void __fastcall ArrangeControl(TControl* AControl, const System::Types::TPoint &ParentSize, TAlign AAlign, const TAlignInfo &AAlignInfo, System::Types::TRect &Rect, bool UpdateAnchorOrigin = false);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Aligns the given control with the specified alignment options.

ArrangeControl is a protected method used internally by AlignControls to align each control, with the specified alignment options.

To be more specific, ArrangeControl aligns the control given by AControl, with the alignment options specified through the parameters ParentSize, AAlign, AAlignInfo, Rect, and UpdateAnchorOrigin. The meaning of these parameters is summarized in the following table.



Parameter Meaning

ParentSize

The size of the parent control within which AControl is aligned.

AAlign

Determines how AControl aligns within its parent control.

AAlignInfo

Describes the alignment details of AControl within its parent.

Rect

The rectangular area inside the parent control in which to align AControl.

UpdateAnchorOrigin

Specifies whether to update the anchor origin of AControl, following the alignment.



See Also