ToolStripItem.GetCurrentParent ToolStripItem.GetCurrentParent ToolStripItem.GetCurrentParent ToolStripItem.GetCurrentParent Method

定义

检索作为当前 ToolStrip 的容器的 ToolStripItemRetrieves the ToolStrip that is the container of the current ToolStripItem.

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

返回

一个 ToolStrip,它是当前 ToolStripItem 的容器。A ToolStrip that is the container of the current ToolStripItem.

注解

GetCurrentParentParent属性的只读访问器。GetCurrentParent is a read-only accessor to the Parent property. 父级不同于所有者, 因为父对象表示在其中显示项的ToolStrip返回的当前 (可能在溢出区中)。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.

适用于