System.Windows.Forms.ToolStripItem.GetCurrentParent Method

Retrieves the System.Windows.Forms.ToolStrip that is the container of the current System.Windows.Forms.ToolStripItem.

Syntax

public ToolStrip GetCurrentParent ()

Returns

A System.Windows.Forms.ToolStrip that is the container of the current System.Windows.Forms.ToolStripItem.

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.

Requirements

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