Draws a check mark or radio check onto the specified Graphics surface.
Several methods exist in ControlPaint to draw various styles of check marks, but all of them use a fixed size and color. DrawCheck enables you to provide a custom size and color brush and to draw it using a transparent background.
This example draws a red, 13-pixel check mark at position (4, 4) on a graphics surface.
[Visual Basic]
Dim checkBounds As Rectangle = New Rectangle(Bounds.X + 4, Bounds.Y + 4, 13, 13) RebarMenuItemRenderer.DrawCheck(e.Graphics, checkBounds, SystemBrushes.Red, False)
[C#]
Rectangle checkBounds = new Rectangle(Bounds.X + 4, Bounds.Y + 4, 13, 13); RebarMenuItemRenderer.DrawCheck(e.Graphics, checkBounds, SystemBrushes.Red, false);
RebarMenuItemRenderer Class | Skybound.Rebar.Rendering Namespace