Export (0) Print
Expand All

ScrollBar.AutoSize Property

Gets or sets a value indicating whether the ScrollBar is automatically resized to fit its contents.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public override bool AutoSize { get; set; }

Property Value

Type: System.Boolean
true if the ScrollBar should be automatically resized to fit its contents; otherwise, false.

Setting the AutoSize property has no effect on the appearance of the control.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft