ToolStripItemRenderEventArgs::ToolStrip Property
.NET Framework (current version)
Gets the value of the ToolStripItem::Owner property for the ToolStripItem to paint.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Property Value
Type: System.Windows.Forms::ToolStrip^The ToolStrip that is the owner of the ToolStripItem.
If the ToolStripItem is in the overflow area of the Form, the ToolStrip property returns an empty string.
The following code example demonstrates how to override the OnRenderButtonBackground method to draw a border around a ToolStripButton control's Image. This code example is part of a larger example provided for the ToolStripRenderer class.
.NET Framework
Available since 2.0
Available since 2.0
Show: