ToolStripItem.Parent 屬性

定義

取得或設定 ToolStripItem 的父容器。Gets or sets the parent container of the ToolStripItem.

protected public:
 property System::Windows::Forms::ToolStrip ^ Parent { System::Windows::Forms::ToolStrip ^ get(); void set(System::Windows::Forms::ToolStrip ^ value); };
[System.ComponentModel.Browsable(false)]
protected internal System.Windows.Forms.ToolStrip Parent { get; set; }
member this.Parent : System.Windows.Forms.ToolStrip with get, set
Protected Friend Property Parent As ToolStrip

屬性值

ToolStrip,為 ToolStripItem 的父容器。A ToolStrip that is the parent container of the 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.

ToolStrip 會引發繪製事件等等,而擁有者 ToolStrip 則包含影像清單之類的共用資料。The parent ToolStrip raises paint events and so on, while the owner ToolStrip contains shared data such as image lists. 一般來說,Parent 屬性是由 ToolStrip上的版面建構管理員所設定。Typically, the Parent property is set by the layout manager on the ToolStrip.

適用於