次の方法で共有


ListView.GetItemRect メソッド (Int32, ItemBoundsPortion)

リスト ビュー コントロール内の特定の項目の外接する四角形の指定した部分を取得します。

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

パラメータ

戻り値

指定した ListViewItem の指定した部分の外接する四角形を表す Rectangle

解説

このバージョンの GetItemRect メソッドによって返された外接する四角形は、 portion パラメータで指定された項目の部分だけを表します。項目全体の外接する四角形を返すには、他のバージョンの GetItemRect メソッドを使用します。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

ListView クラス | ListView メンバ | System.Windows.Forms 名前空間 | ListView.GetItemRect オーバーロードの一覧 | Rectangle | ListViewItem | ItemBoundsPortion