System.Windows.Forms.ToolBar.AutoSize Property

Gets or sets a value indicating whether the toolbar adjusts its size automatically, based on the size of the buttons and the dock style.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(true)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Always)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Visible)]
[System.ComponentModel.Browsable(true)]
public override bool AutoSize { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When ToolBar.AutoSize is set to true, the System.Windows.Forms.ToolBar control sizes itself to accommodate the toolbar buttons, based upon the button size, the number of System.Windows.Forms.ToolBarButton objects it contains, and the System.Windows.Forms.DockStyle of the toolbar.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0