Table of Contents

Constructor DrawItemEventArgs

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 Graphics

The Graphics surface on which to draw.

font Font

The Font to use, usually the parent control's Font property.

rect RectD

The RectD bounds to draw within.

index int

The index value of the item that is being drawn.

state DrawItemState

The 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 Graphics

The Graphics surface on which to draw.

font Font

The Font to use, usually the parent control's Font property.

rect RectD

The RectD bounds to draw within.

index int

The index value of the item that is being drawn.

state DrawItemState

The control's DrawItemState information.

foreColor Color

The foreground Color to draw the control with.

backColor Color

The background Color to draw the control with.