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!

ListView.GetItemRect (Int32, Int32)

Returns a specific portion of a list item's bounding rectangle.

[Visual Basic]
Overloads Public Function GetItemRect( _
   ByVal index As Integer, _
   ByVal portion As Integer _
) As Rectangle
[C#]
public Rectangle GetItemRect(
   int index,
   int portion
);
[C++]
public: Rectangle GetItemRect(
   int index,
   int portion
);
[JScript]
public function GetItemRect(
   index : int,
   portion : int
) : Rectangle;

Parameters

index
Zero based index into ListView's list of items
portion
The portion of the item's rectange desired. This must be one of the values from the ItemBoundsPortion enum.

Return Value

Rectangle associated with the ListItem

See Also

ListView Class | ListView Members | System.WinForms Namespace | ListView.GetItemRect Overload List