ToolStripItem.GetCurrentParent 方法

定義

擷取 ToolStrip,其為目前 ToolStripItem 的容器。Retrieves 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.

適用於