通过


ToolStrip.SetItemParent(ToolStripItem, ToolStrip) 方法

定义

使你能够更改 ToolStrip 父级 ToolStripItem

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参数所引用itemToolStripItem父级。

注解

创建自定义布局引擎时使用 SetItemParent(ToolStripItem, ToolStrip) 该方法。

适用于