System.Windows.Forms.ToolStripControlHost.DefaultSize Property

Gets the default size of the control.

Syntax

protected override System.Drawing.Size DefaultSize { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ToolStripControlHost.DefaultSize property represents the System.Drawing.Size of the control when it is initially created. If ToolStripItem.AutoSize is true, the control is sized automatically in accordance with the System.Windows.Forms.ToolStrip orientation. You can manually adjust the size of the control by setting its ToolStripItem.AutoSize property value to false.

Note:

In order to maintain better performance, you should not set the System.Drawing.Size of a control in its constructor. The preferred method is to override the ToolStripControlHost.DefaultSize property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0