Export (0) Print
Expand All

MenuStrip.CanOverflow Property

Gets or sets a value indicating whether the MenuStrip supports overflow functionality.

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

public bool CanOverflow { get; set; }

Property Value

Type: System.Boolean
true if the MenuStrip supports overflow functionality; otherwise, false. The default is false.

The overflow feature moves menu items to a drop-down menu when there is not enough room to display them in a MenuStrip. When you set the CanOverflow property to true, you must also enable overflow for specific menu items by setting the ToolStripMenuItem.Overflow property. By default, menu items are not displayed if they cannot fit within the available space.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft