共用方式為


ToolStrip.SetItemParent(ToolStripItem, ToolStrip) 方法

定義

讓你能更改 的ToolStripItemToolStrip節點。

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) 方法。

適用於