FMX.Layouts.THorzScrollBox.Margins

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Margins: TBounds read GetMargins write SetMargins;

C++

__property Margins;

Properties

Type Visibility Source Unit Parent
property published
FMX.Layouts.pas
FMX.Layouts.hpp
FMX.Layouts THorzScrollBox

Description


Specifies the control's margins.

FMX.Layouts.THorzScrollBox.Margins inherits from FMX.Controls.TControl.Margins. All content below this line refers to FMX.Controls.TControl.Margins.

Specifies the control's margins.

The Margins of a control are the distances (in pixels) from each edge (top, left, bottom, right) to another control within the same Parent or to the edge of its Parent. Margins adds space to the outer side of the control.

If a margin is not 0, no other control will come closer to the control than the specified distance. If the distance from a Parent edge to the corresponding control edge is smaller than the specified Margins for that edge, the control is repositioned and resized, if necessary, to maintain the specified distance.

The following image shows how Padding and Margins properties affect alignment, position, and size of controls.

Margins Padding Control.png

See Also