ToolStripDropDownMenu.LayoutStyle Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets a value indicating how the items of ContextMenuStrip are displayed.

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

member LayoutStyle : ToolStripLayoutStyle with get, set

Property Value

Type: System.Windows.Forms.ToolStripLayoutStyle

One of the ToolStripLayoutStyle values. The default is Flow.

By default, ContextMenuStrip items flow horizontally or vertically as necessary. See the ToolStripLayoutStyle enumeration for the other possibilities.

.NET Framework
Available since 2.0
Return to top
Show: