XtraScrollableControl.AutoScrollMargin Property

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v20.1.dll

Declaration

[DXCategory("Behavior")]
public Size AutoScrollMargin { get; set; }
<DXCategory("Behavior")>
Public Property AutoScrollMargin As Size

Property Value

Type Description
Size

A 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