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:
[BrowsableAttribute(false)]
property bool AutoSize {
	virtual bool get() override;
	virtual void set(bool value) override;
}

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
Show: