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!

ComboBox DrawItem Event

[To be supplied.]

The following declaration shows the syntax for a method that handles the DrawItem event.

[Visual Basic]
Private Sub ComboBoxName_DrawItem( _
   ByVal sender As Object, _
   ByVal e As DrawItemEventArgs _
)
[C#]
private void ComboBoxName_DrawItem(
   object sender,
   DrawItemEventArgs e
);
[C++]
private: void ComboBoxName_DrawItem(
   Object* sender,
   DrawItemEventArgs* e
);
[JScript]
private ComboBoxName_DrawItem(
   sender : Object,
   e : DrawItemEventArgs
);

Parameters

sender
The source of the event.
e
A DrawItemEventArgs that contains the event data. The following DrawItemEventArgs properties provide information specific to this event.
Property Description
Bounds
The rectangle outlining the area in which the painting should be done.
Font
A suggested font, usually the parent control's Font property.
ForeColor
A suggested color drawing: either SystemColors.WindowText or SystemColors.HighlightText, depending on whether this item is selected.
Graphics
Graphics object with which painting should be done.
Index
The index of the item that should be painted.
State
Miscellaneous state information, such as whether the item is "selected", "focused", or some other such information. ComboBoxes have one special piece of information which indicates if the item being painted is the editable portion of the ComboBox.

See Also

ComboBox Class | ComboBox MembersTopic | System.WinForms Namespace