語言

ToolStripItem.Parent 屬性

定義

取得或設定 的 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; }
[System.ComponentModel.Browsable(false)]
protected internal System.Windows.Forms.ToolStrip? Parent { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.Parent : System.Windows.Forms.ToolStrip with get, set
Protected Friend Property Parent As ToolStrip

屬性值

A ToolStrip 是 的父容器 ToolStripItem。

屬性

備註

GetCurrentParent 是 Parent 屬性的唯讀存取子。 父代與所有者不同,因為父代表示返回的目前ToolStrip顯示項目,這可能位於溢位區域中。

父 ToolStrip 節點會引發繪畫事件等,而擁有者 ToolStrip 則包含像圖片清單這類共享資料。 通常,該 Parent 屬性由版面管理員 ToolStrip在 . 上設定。

適用於