ListViewItem.GetBounds Method
.NET Framework 1.1
Retrieves the specified portion of the bounding rectangle for the item.
[Visual Basic] Public Function GetBounds( _ ByVal portion As ItemBoundsPortion _ ) As Rectangle [C#] public Rectangle GetBounds( ItemBoundsPortion portion ); [C++] public: Rectangle GetBounds( ItemBoundsPortion portion ); [JScript] public function GetBounds( portion : ItemBoundsPortion ) : Rectangle;
Parameters
- portion
- One of the ItemBoundsPortion values that represents a portion of the item for which to retrieve the bounding rectangle.
Return Value
A Rectangle that represents the bounding rectangle for the specified portion of the item.
Remarks
The bounding rectangle returned by the GetBounds method represents only the section of the item specified in the portion parameter. You can also call the GetItemRect methods of the ListView class to obtain the bounding rectangle of any item in a ListView control.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ListViewItem Class | ListViewItem Members | System.Windows.Forms Namespace | GetItemRect