ToolStripMenuItem.DefaultSize Property


Gets the default size of the ToolStripMenuItem.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected override Size DefaultSize { get; }

Property Value

Type: System.Drawing.Size

The Size of the ToolStripMenuItem, measured in pixels. The default is 100 pixels horizontally.

Override DefaultSize in derived classes to configure a default size for a ToolStripMenuItem. This is more efficient than setting the size in the control's constructor.

.NET Framework
Available since 2.0
Return to top