System.Windows.Forms.ToolStripRenderer.DrawItemCheck Method

Draws an image on a System.Windows.Forms.ToolStripItem that indicates the item is in a selected state.

Syntax

public void DrawItemCheck (ToolStripItemImageRenderEventArgs e)

Parameters

e
A System.Windows.Forms.ToolStripItemImageRenderEventArgs that contains the data to draw the selected image.

Remarks

The ToolStripRenderer.DrawItemCheck(ToolStripItemImageRenderEventArgs) method provides the entry point to the rendering code for an image in a selected state. Use this method to draw a selected image when overriding the ToolStripItem.OnPaint(PaintEventArgs) method, or to force a selected image to be drawn in a custom System.Windows.Forms.ToolStripRenderer. To change the way a selected image is rendered, override the ToolStripRenderer.OnRenderItemCheck(ToolStripItemImageRenderEventArgs) method in a class derived from System.Windows.Forms.ToolStripRenderer.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0