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!

ListBox MeasureItem Event

[To be supplied.]

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

[Visual Basic]
Private Sub ListBoxName_MeasureItem( _
   ByVal sender As Object, _
   ByVal e As MeasureItemEventArgs _
)
[C#]
private void ListBoxName_MeasureItem(
   object sender,
   MeasureItemEventArgs e
);
[C++]
private: void ListBoxName_MeasureItem(
   Object* sender,
   MeasureItemEventArgs* e
);
[JScript]
private ListBoxName_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

ListBox Class | ListBox MembersTopic | System.WinForms Namespace