ToolStrip::SetItemParent Method (ToolStripItem^, ToolStrip^)

 

Enables you to change the parent ToolStrip of a ToolStripItem.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

protected:
static void SetItemParent(
	ToolStripItem^ item,
	ToolStrip^ parent
)

Parameters

item
Type: System.Windows.Forms::ToolStripItem^

The ToolStripItem whose Parent property is to be changed.

parent
Type: System.Windows.Forms::ToolStrip^

The ToolStrip that is the parent of the ToolStripItem referred to by the item parameter.

Use the SetItemParent property when creating a custom layout engine.

.NET Framework
Available since 2.0
Return to top
Show: