NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DrawItemEventArgs Constructor

Creates a new DrawItemEventArgs with the given parameters.

[Visual Basic]
Public Sub New( _
   ByVal graphics As Graphics, _
   ByVal font As Font, _
   ByVal rect As Rectangle, _
   ByVal index As Integer, _
   ByVal state As DrawItemState _
)
[C#]
public DrawItemEventArgs(
   Graphics graphics,
   Font font,
   Rectangle rect,
   int index,
   DrawItemState state
);
[C++]
public: DrawItemEventArgs(
   Graphics* graphics,
   Font* font,
   Rectangle rect,
   int index,
   DrawItemState state
);
[JScript]
public function DrawItemEventArgs(
   graphics : Graphics,
   font : Font,
   rect : Rectangle,
   index : int,
   state : DrawItemState
);

Parameters

graphics
The graphics with which drawing is to be done.
font
A suggested font, usually the parent control's Font property.
rect
The rectangle in which drawing is to be done.
index
The index of the item that is to be drawn.
state
Any extra state information that might be useful.

See Also

DrawItemEventArgs Class | DrawItemEventArgs Members | System.WinForms Namespace