ToolStripItemRenderEventArgs Class

 

Provides data for the events that render the background of objects derived from ToolStripItem in the ToolStripRenderer class.

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


public ref class ToolStripItemRenderEventArgs : EventArgs

NameDescription
System_CAPS_pubmethodToolStripItemRenderEventArgs(Graphics^, ToolStripItem^)

Initializes a new instance of the ToolStripItemRenderEventArgs class for the specified ToolStripItem and using the specified Graphics.

NameDescription
System_CAPS_pubpropertyGraphics

Gets the graphics used to paint the ToolStripItem.

System_CAPS_pubpropertyItem

Gets the ToolStripItem to paint.

System_CAPS_pubpropertyToolStrip

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

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: