System.Windows.Forms.ToolStrip.DefaultSize Property

Gets the default size of the System.Windows.Forms.ToolStrip.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

The ToolStrip.DefaultSize property represents the System.Drawing.Size value of the System.Windows.Forms.ToolStrip when it is initially created. You can adjust the size of the System.Windows.Forms.ToolStrip by setting its Control.PreferredSize property value.

Note:

To maintain better performance, do not set the System.Drawing.Size of a System.Windows.Forms.ToolStrip in its constructor. Instead, override the ToolStrip.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