ListView.FindNearestItem メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した方向で検索して、特定のポイントから次の項目を検索します。
オーバーロード
| 名前 | 説明 |
|---|---|
| FindNearestItem(SearchDirectionHint, Point) |
指定した方向で検索して、指定したポイントから次の項目を検索します。 |
| FindNearestItem(SearchDirectionHint, Int32, Int32) |
指定した x 座標と y 座標から次の項目を検索し、指定した方向で検索します。 |
FindNearestItem(SearchDirectionHint, Point)
指定した方向で検索して、指定したポイントから次の項目を検索します。
public:
System::Windows::Forms::ListViewItem ^ FindNearestItem(System::Windows::Forms::SearchDirectionHint dir, System::Drawing::Point point);
public System.Windows.Forms.ListViewItem FindNearestItem(System.Windows.Forms.SearchDirectionHint dir, System.Drawing.Point point);
member this.FindNearestItem : System.Windows.Forms.SearchDirectionHint * System.Drawing.Point -> System.Windows.Forms.ListViewItem
Public Function FindNearestItem (dir As SearchDirectionHint, point As Point) As ListViewItem
パラメーター
SearchDirectionHint値の 1 つ。
- point
- Point
検索を開始するポイント。
返品
指定したポイントに最も近い ListViewItem 。指定した方向で検索します。
例外
注釈
FindNearestItem メソッドは、指定された方向に項目が見つからない場合にnullを返します。 最も近い項目の識別は、アプリケーションが実行されているオペレーティング システムによって異なり、 FindNearestItemの結果に影響します。
適用対象
FindNearestItem(SearchDirectionHint, Int32, Int32)
指定した x 座標と y 座標から次の項目を検索し、指定した方向で検索します。
public:
System::Windows::Forms::ListViewItem ^ FindNearestItem(System::Windows::Forms::SearchDirectionHint searchDirection, int x, int y);
public System.Windows.Forms.ListViewItem FindNearestItem(System.Windows.Forms.SearchDirectionHint searchDirection, int x, int y);
member this.FindNearestItem : System.Windows.Forms.SearchDirectionHint * int * int -> System.Windows.Forms.ListViewItem
Public Function FindNearestItem (searchDirection As SearchDirectionHint, x As Integer, y As Integer) As ListViewItem
パラメーター
- searchDirection
- SearchDirectionHint
SearchDirectionHint値の 1 つ。
- x
- Int32
検索を開始するポイントの x 座標。
- y
- Int32
検索を開始するポイントの y 座標。
返品
指定した座標に最も近い ListViewItem 。指定した方向で検索します。
例外
注釈
FindNearestItem メソッドは、指定された方向に項目が見つからない場合にnullを返します。 最も近い項目の識別は、アプリケーションが実行されているオペレーティング システムによって異なり、 FindNearestItemの結果に影響します。