Constructor DrawItemEventArgs
DrawItemEventArgs(Graphics, Font, RectD, int, DrawItemState)
Initializes a new instance of the DrawItemEventArgs class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within.
public DrawItemEventArgs(Graphics graphics, Font font, RectD rect, int index, DrawItemState state)
Parameters
graphics
GraphicsThe Graphics surface on which to draw.
font
FontThe Font to use, usually the parent control's Font property.
rect
RectDThe RectD bounds to draw within.
index
intThe index value of the item that is being drawn.
state
DrawItemStateThe control's DrawItemState information.
DrawItemEventArgs(Graphics, Font, RectD, int, DrawItemState, Color, Color)
Initializes a new instance of the DrawItemEventArgs class for the specified control with the specified font, state, foreground color, background color, surface to draw on, and the bounds to draw within.
public DrawItemEventArgs(Graphics graphics, Font font, RectD rect, int index, DrawItemState state, Color foreColor, Color backColor)
Parameters
graphics
GraphicsThe Graphics surface on which to draw.
font
FontThe Font to use, usually the parent control's Font property.
rect
RectDThe RectD bounds to draw within.
index
intThe index value of the item that is being drawn.
state
DrawItemStateThe control's DrawItemState information.
foreColor
ColorThe foreground Color to draw the control with.
backColor
ColorThe background Color to draw the control with.