Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ToolStripDropDownMenu.LayoutStyle Property

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)

'Declaration
Public Property LayoutStyle As ToolStripLayoutStyle

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

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft