System.Windows.Forms.ToolStripItem.Owner Property

Gets or sets the owner of this item.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public ToolStrip Owner { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

ToolStripItem.Owner returns the System.Windows.Forms.ToolStrip whose Items collection contains the current System.Windows.Forms.ToolStripItem. This is the best way to reference ToolStrip.ImageList or other properties in the top-level System.Windows.Forms.ToolStrip without writing special code to handle overflow.

The ToolStripItem.Owner remains the same even if the item falls into the System.Windows.Forms.ToolStripOverflow. The ToolStripItem.Owner can be null for certain elements that are in the ToolStrip.DisplayedItems collection but not in the ToolStrip.Items collection.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0