ToolStripItemImageRenderEventArgs Constructor (Graphics, ToolStripItem, Image, Rectangle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ToolStripItemImageRenderEventArgs class for the specified ToolStripItem that displays an image within the specified space and that has the specified properties.

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

public ToolStripItemImageRenderEventArgs(
	Graphics g,
	ToolStripItem item,
	Image image,
	Rectangle imageRectangle
)

Parameters

g
Type: System.Drawing.Graphics

The Graphics used to paint the image.

item
Type: System.Windows.Forms.ToolStripItem

The ToolStripItem on which to draw the image.

image
Type: System.Drawing.Image

The Image to paint.

imageRectangle
Type: System.Drawing.Rectangle

The bounding area of the image.

.NET Framework
Available since 2.0
Return to top
Show: