ToolStripDropDownMenu.LayoutStyle 属性

定义

获取或设置一个值,该值指示 ContextMenuStrip 的项的显示方式。

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

属性值

ToolStripLayoutStyle 值之一。 默认值为 Flow

注解

默认情况下, ContextMenuStrip 项目根据需要水平或垂直流动。 有关其他可能性, ToolStripLayoutStyle 请参阅 枚举。

适用于