System.Windows.Forms.ToolStripItem.Parent Property

Gets or sets the parent container of the System.Windows.Forms.ToolStripItem.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
protected ToolStrip Parent { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

ToolStripItem.GetCurrentParent is a read-only accessor to the ToolStripItem.Parent property. A parent differs from an owner in that a parent denotes the returned current System.Windows.Forms.ToolStrip in which the item is displayed, which might be in the overflow area.

The parent System.Windows.Forms.ToolStrip raises paint events and so on, while the owner System.Windows.Forms.ToolStrip contains shared data such as image lists. Typically, the ToolStripItem.Parent property is set by the layout manager on the System.Windows.Forms.ToolStrip.

Requirements

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