System.Windows.Forms.ToolStrip.SetItemParent Method

Enables you to change the parent System.Windows.Forms.ToolStrip of a System.Windows.Forms.ToolStripItem.

Syntax

protected static void SetItemParent (ToolStripItem item, ToolStrip parent)

Parameters

item
The System.Windows.Forms.ToolStripItem whose Control.Parent property is to be changed.
parent
The System.Windows.Forms.ToolStrip that is the parent of the System.Windows.Forms.ToolStripItem referred to by the item parameter.

Remarks

Use the ToolStrip.SetItemParent(ToolStripItem, ToolStrip) property when creating a custom layout engine.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0