共用方式為


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如需其他可能性,請參閱 列舉。

適用於