ToolStrip.SetItemParent(ToolStripItem, ToolStrip) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使你能够更改 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参数所引用item的ToolStripItem父级。
注解
创建自定义布局引擎时使用 SetItemParent(ToolStripItem, ToolStrip) 该方法。