ListView.FindNearestItem 메서드

정의

지정된 방향으로 검색하여 주어진 지점에서 다음 항목을 찾습니다.

오버로드

FindNearestItem(SearchDirectionHint, Int32, Int32)

지정된 방향으로 검색하여 주어진 X 및 Y 좌표에서 다음 항목을 찾습니다.

FindNearestItem(SearchDirectionHint, Point)

지정된 방향으로 검색하여 주어진 지점에서 다음 항목을 찾습니다.

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);
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 값 중 하나입니다.

x
Int32

검색을 시작할 지점의 X 좌표입니다.

y
Int32

검색을 시작할 지점의 Y 좌표입니다.

반환

ListViewItem

지정된 방향으로 검색할 때 지정된 좌표에 가장 가까운 ListViewItem입니다.

예외

ViewSmallIcon 또는 LargeIcon 이외의 값으로 설정된 경우

설명

FindNearestItem 지정된 방향에 항목이 없으면 메서드가 반환 null 됩니다. 애플리케이션 실행은 운영 체제에 따라 달라질 수 있습니다 가장 가까운 항목을 식별 하 고 결과는 영향이 FindNearestItem합니다.

적용 대상

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);
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

매개 변수

dir
SearchDirectionHint

SearchDirectionHint 값 중 하나입니다.

point
Point

검색을 시작할 지점입니다.

반환

ListViewItem

지정된 방향으로 검색할 때 주어진 지점에 가장 가까운 ListViewItem입니다.

예외

ViewSmallIcon 또는 LargeIcon 이외의 값으로 설정된 경우

설명

FindNearestItem 지정된 방향에 항목이 없으면 메서드가 반환 null 됩니다. 애플리케이션 실행은 운영 체제에 따라 달라질 수 있습니다 가장 가까운 항목을 식별 하 고 결과는 영향이 FindNearestItem합니다.

적용 대상