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)

public ToolStripLayoutStyle LayoutStyle { 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