Skip to main content

XtraScrollableControl.AutoScrollMargin Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.1.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

[DXCategory("Behavior")]
public Size AutoScrollMargin { get; set; }

Property Value

Type Description
Size

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

Remarks

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.

Note

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

See Also