ToolStripDropDownMenu::LayoutStyle Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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)

property ToolStripLayoutStyle LayoutStyle {
	ToolStripLayoutStyle get();
	void set(ToolStripLayoutStyle value);

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