Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XtraScrollableControl.AutoScrollMargin Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.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