ToolStripDropDownMenu.LayoutStyle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating how the items of ContextMenuStrip are displayed.
public:
property System::Windows::Forms::ToolStripLayoutStyle LayoutStyle { System::Windows::Forms::ToolStripLayoutStyle get(); void set(System::Windows::Forms::ToolStripLayoutStyle value); };
public System.Windows.Forms.ToolStripLayoutStyle LayoutStyle { get; set; }
member this.LayoutStyle : System.Windows.Forms.ToolStripLayoutStyle with get, set
Public Property LayoutStyle As ToolStripLayoutStyle
Property Value
One of the ToolStripLayoutStyle values. The default is Flow.
Remarks
By default, ContextMenuStrip items flow horizontally or vertically as necessary. See the ToolStripLayoutStyle enumeration for the other possibilities.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.