編輯

共用方式為


ToolStripItem.OwnerItem Property

Definition

Gets the parent ToolStripItem of this ToolStripItem.

public:
 property System::Windows::Forms::ToolStripItem ^ OwnerItem { System::Windows::Forms::ToolStripItem ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ToolStripItem OwnerItem { get; }
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.ToolStripItem? OwnerItem { get; }
[<System.ComponentModel.Browsable(false)>]
member this.OwnerItem : System.Windows.Forms.ToolStripItem
Public ReadOnly Property OwnerItem As ToolStripItem

Property Value

The parent ToolStripItem of this ToolStripItem.

Attributes

Remarks

For example, the OwnerItem of an OpenToolStripMenuItem would typically be a FileToolStripMenuItem.

Applies to