Draws the specified menu glyph on a menu item control with the specified bounds and on the specified surface.
- graphics
The System.Drawing.Graphics to draw on.
- x
The x-coordinate of the upper left corner of the drawing rectangle.
- y
The y-coordinate of the upper left corner of the drawing rectangle.
- width
The width of the menu glyph.
- height
The height of the menu glyph.
- glyph
One of the System.Windows.Forms.MenuGlyph values that specifies the image to draw.
When owner-drawing System.Windows.Forms.MenuItem controls, you need to verify property values to determine the correct glyph to draw or remove. For example, when the MenuItem.Checked property is set to true, you call the MenuGlyph.Checkmark value of System.Windows.Forms.MenuGlyph to draw a check mark on the System.Windows.Forms.MenuItem.