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)

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
Available since 2.0
Return to top