共用方式為


ToolBar.ToolBarButtonCollection(ToolBar) 建構函式

定義

初始化該類別的新實例 ToolBar.ToolBarButtonCollection ,並將其指派到指定的工具列。

public:
 ToolBarButtonCollection(System::Windows::Forms::ToolBar ^ owner);
public ToolBarButtonCollection(System.Windows.Forms.ToolBar owner);
new System.Windows.Forms.ToolBar.ToolBarButtonCollection : System.Windows.Forms.ToolBar -> System.Windows.Forms.ToolBar.ToolBarButtonCollection
Public Sub New (owner As ToolBar)

參數

owner
ToolBar

ToolBar 個是控制項集合 ToolBarButton 的父節點。

備註

你通常不會建立一個 ToolBar.ToolBarButtonCollection 並明確呼叫它的建構子。 透過參考 Buttons 控制的 ToolBar 性質,產生了 a ToolBar.ToolBarButtonCollection 。 接著你可以取得它的屬性和方法,並為集合指派 ToolBarButton 控制項。

適用於

另請參閱