ToolBar.ToolBarButtonCollection(ToolBar) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化該類別的新實例 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 控制項。