ToolStripItemRenderEventArgs::ToolStrip Property

 

Gets the value of the ToolStripItem::Owner property for the ToolStripItem to paint.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property ToolStrip^ ToolStrip {
	ToolStrip^ get();
}

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.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: