Table of Contents

Class DrawItemEventArgs

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

Provides data for the draw item events.

public class DrawItemEventArgs : BaseEventArgs
Inheritance
DrawItemEventArgs

Constructors

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.

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.

Properties

BackColor

Gets the background color of the item that is being drawn.

Bounds

Gets the rectangle that represents the bounds of the item that is being drawn.

Font

Gets the font that is assigned to the item being drawn.

ForeColor

Gets the foreground color of the of the item being drawn.

Graphics

Gets the graphics surface to draw the item on.

Index

Gets the index value of the item that is being drawn.

State

Gets the state of the item being drawn.

Methods

DrawBackground()

Draws the background within the bounds specified in the constructor and with the appropriate color.