XtraScrollableControl.AutoScrollMargin Property

Gets or sets the size of the auto-scroll margin.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v21.2.dll


public Size AutoScrollMargin { get; set; }

Property Value

Type Description

A Size object that represents the height and width of the auto-scroll margin, in pixels.


The auto-scroll margin is the distance between any child controls and the edges of the XtraScrollableControl. The size specified by the AutoScrollMargin property is added to the size of any child controls contained in the scrollable control, to determine whether scroll bars are needed.


Docked controls are excluded from the calculations that determine if scroll bars must be displayed.

See Also