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 = null, RectD? rect = null, int index = 0, DrawItemState state = DrawItemState.None)
Parameters
graphicsGraphicsThe Graphics surface on which to draw.
fontFontThe Font to use, usually the parent control's Font property.
rectRectD?The RectD bounds to draw within.
indexintThe index value of the item that is being drawn.
stateDrawItemStateThe 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
graphicsGraphicsThe Graphics surface on which to draw.
fontFontThe Font to use, usually the parent control's Font property.
rectRectDThe RectD bounds to draw within.
indexintThe index value of the item that is being drawn.
stateDrawItemStateThe control's DrawItemState information.
foreColorColorThe foreground Color to draw the control with.
backColorColorThe background Color to draw the control with.