System.Windows.Forms.DrawItemEventArgs Members

The members of System.Windows.Forms.DrawItemEventArgs are listed below.

See Also: Inherited members from System.EventArgs

Public Constructors

Initializes a new instance of the System.Windows.Forms.DrawItemEventArgs class for the specified control with the specified font, state, surface to draw on, and the bounds to draw within.

Initializes a new instance of the System.Windows.Forms.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 Properties

[read-only]
BackColorSystem.Drawing.Color.

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

[read-only]
BoundsSystem.Drawing.Rectangle.

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

[read-only]
FontSystem.Drawing.Font.

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

[read-only]
ForeColorSystem.Drawing.Color.

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

[read-only]
GraphicsSystem.Drawing.Graphics.

Gets the graphics surface to draw the item on.

[read-only]
Indexint.

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

[read-only]
StateDrawItemState.

Gets the state of the item being drawn.

Public Methods

DrawBackground()

Draws the background within the bounds specified in the erload:System.Windows.Forms.DrawItemEventArgs.#ctor constructor and with the appropriate color.

DrawFocusRectangle()

Draws a focus rectangle within the bounds specified in the erload:System.Windows.Forms.DrawItemEventArgs.#ctor constructor.