This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
ComboBox MeasureItem Event
[To be supplied.]
The following declaration shows the syntax for a method that handles the MeasureItem event.
[Visual Basic]
Private Sub ComboBoxName_MeasureItem( _
ByVal sender As Object, _
ByVal e As MeasureItemEventArgs _
)
[C#]
private void ComboBoxName_MeasureItem(
object sender,
MeasureItemEventArgs e
);
[C++]
private: void ComboBoxName_MeasureItem(
Object* sender,
MeasureItemEventArgs* e
);
[JScript]
private ComboBoxName_MeasureItem(
sender : Object,
e : MeasureItemEventArgs
);
Parameters
- sender
- The source of the event.
- e
- A MeasureItemEventArgs that contains the event data. The following MeasureItemEventArgs properties provide information specific to this event.
Property |
Description |
- Graphics
|
- A Graphics object to measure relative to.
|
- Index
|
- The index of item for which the height/width is needed.
|
- ItemHeight
|
- Where the recipient of the event should put the height of the item specified by the index.
|
- ItemWidth
|
- Where the recipient of the event should put the width of the item specified by the index.
|
See Also
ComboBox Class | ComboBox MembersTopic | System.WinForms Namespace