This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com . Thanks!
TabBase DrawItem Event
[To be supplied.]
The following declaration shows the syntax for a method that handles the DrawItem event.
[Visual Basic]
Private Sub TabBaseName_ DrawItem( _
ByVal sender As Object, _
ByVal e As DrawItemEventArgs _
)
[C#]
private void TabBaseName_ DrawItem(
object sender ,
DrawItemEventArgs e
);
[C++]
private: void TabBaseName_ DrawItem(
Object* sender ,
DrawItemEventArgs* e
);
[JScript]
private TabBaseName_ 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
TabBase Class | TabBase MembersTopic | System.WinForms Namespace