MenuStrip.CanOverflow MenuStrip.CanOverflow MenuStrip.CanOverflow MenuStrip.CanOverflow Property

定義

取得或設定值,表示 MenuStrip 是否支援溢位功能。Gets or sets a value indicating whether the MenuStrip supports overflow functionality.

public:
 property bool CanOverflow { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public bool CanOverflow { get; set; }
member this.CanOverflow : bool with get, set
Public Property CanOverflow As Boolean

屬性值

如果 MenuStrip 支援溢位功能,則為 true,否則為 falsetrue if the MenuStrip supports overflow functionality; otherwise, false. 預設為 falseThe default is false.

備註

當沒有足夠的空間可顯示在中MenuStrip時,溢位功能會將功能表項目移至下拉式功能表。The overflow feature moves menu items to a drop-down menu when there is not enough room to display them in a MenuStrip. 當您將CanOverflow屬性設定為true時,您也必須藉由設定ToolStripMenuItem.Overflow屬性來啟用特定功能表項目的溢位。When you set the CanOverflow property to true, you must also enable overflow for specific menu items by setting the ToolStripMenuItem.Overflow property. 根據預設,如果功能表項目無法納入可用空間中,則不會顯示它們。By default, menu items are not displayed if they cannot fit within the available space.

適用於