Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ToolStripItem.GetCurrentParent Method
Definition
- Namespace:
- System.Windows.Forms
- Assembly:
- System.Windows.Forms.dll
- Source:
- ToolStripItem.cs
- Source:
- ToolStripItem.cs
- Source:
- ToolStripItem.cs
- Source:
- ToolStripItem.cs
- Source:
- ToolStripItem.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the ToolStrip that is the container of the current ToolStripItem.
public:
System::Windows::Forms::ToolStrip ^ GetCurrentParent();
public System.Windows.Forms.ToolStrip GetCurrentParent();
public System.Windows.Forms.ToolStrip? GetCurrentParent();
member this.GetCurrentParent : unit -> System.Windows.Forms.ToolStrip
Public Function GetCurrentParent () As ToolStrip
Returns
A ToolStrip that is the container of the current ToolStripItem.
Remarks
GetCurrentParent is a read-only accessor to the Parent property. A parent differs from an owner in that a parent denotes the returned current ToolStrip in which the item is displayed, which might be in the overflow area.
Applies to
Feedback
Was this page helpful?
