Export (0) Print
Expand All

ToolStripItem.Parent Property

Gets or sets the parent container of the ToolStripItem.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

protected internal ToolStrip Parent { get; set; }
/** @property */
protected ToolStrip get_Parent ()

/** @property */
protected void set_Parent (ToolStrip value)

protected internal function get Parent () : ToolStrip

protected internal function set Parent (value : ToolStrip)

Not applicable.

Property Value

A ToolStrip that is the parent container of the ToolStripItem.

GetCurrentParent is a read-only accessor to the Parent property. 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.

The parent ToolStrip raises paint events and so on, while the owner ToolStrip contains shared data such as image lists. Typically, the Parent property is set by the layout manager on the ToolStrip.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft