Vcl.Controls.TControl.AlignWithMargins

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property AlignWithMargins: Boolean read GetAlignWithMargins write SetAlignWithMargins default False;

C++

__property bool AlignWithMargins = {read=GetAlignWithMargins, write=SetAlignWithMargins, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TControl

Description

Specifies whether a control should be constrained by margins.

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.

See Also

Code Examples