ToolStripDropDownMenu::LayoutStyle Property
.NET Framework (current version)
Gets or sets a value indicating how the items of ContextMenuStrip are displayed.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ToolStripLayoutStyle LayoutStyle { ToolStripLayoutStyle get(); void set(ToolStripLayoutStyle value); }
Property Value
Type: System.Windows.Forms::ToolStripLayoutStyleOne 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
Available since 2.0
Show: