ToolStrip.SetItemParent(ToolStripItem, ToolStrip) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
讓你能更改 的ToolStripItem父ToolStrip節點。
protected:
static void SetItemParent(System::Windows::Forms::ToolStripItem ^ item, System::Windows::Forms::ToolStrip ^ parent);
protected static void SetItemParent(System.Windows.Forms.ToolStripItem item, System.Windows.Forms.ToolStrip parent);
static member SetItemParent : System.Windows.Forms.ToolStripItem * System.Windows.Forms.ToolStrip -> unit
Protected Shared Sub SetItemParent (item As ToolStripItem, parent As ToolStrip)
參數
- item
- ToolStripItem
ToolStripItem誰的Parent財產將被更改。
- parent
- ToolStrip
該 ToolStrip 是參數所指item的 的ToolStripItem父節點。
備註
建立自訂版面引擎時,請使用此 SetItemParent(ToolStripItem, ToolStrip) 方法。