RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TControl.AlignWithMargins Property

Indicates whether a control should be constrained by margins.

Pascal
property AlignWithMargins: Boolean;
C++
__property Boolean AlignWithMargins;

If AlignWithMargins is true, use the Margins property of the control to govern the spacing relative to other controls that are aligned with this one. The controls are not allowed to be any closer than the spacing specified in Margins. This spacing is maintained as controls are moved when the parent control resizes. 

AlignWithMargins is true if the style csAlignWithMargins, a TControlStyle type, is in the control's ControlStyle property and false otherwise. 

 

TMargins 

ControlStyle 

Margins 

TControlStyle

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!