DataGridView.DataGridViewAccessibleObject.HitTest(Int32, Int32) 메서드

정의

지정된 화면 좌표에 있는 자식 개체를 검색합니다.

public:
 override System::Windows::Forms::AccessibleObject ^ HitTest(int x, int y);
public override System.Windows.Forms.AccessibleObject HitTest (int x, int y);
public override System.Windows.Forms.AccessibleObject? HitTest (int x, int y);
override this.HitTest : int * int -> System.Windows.Forms.AccessibleObject
Public Overrides Function HitTest (x As Integer, y As Integer) As AccessibleObject

매개 변수

x
Int32

가로 화면 좌표입니다.

y
Int32

세로 화면 좌표입니다.

반환

지정된 화면 좌표의 개체를 나타내는 AccessibleObject이거나, 지정된 위치에 개체가 없는 경우 null입니다.

설명

메서드는 HitTest 의 일부를 나타내는 를 DataGridView반환 AccessibleObject 합니다. 개체 자체가 지정된 위치에 있으면 이 메서드는 호출 개체를 반환합니다. 다음 표에서는 가 AccessibleObject 나타내는 내용을 설명합니다.

영역을 클릭했습니다. 접근성 있는 개체로 표시되는 개체
열 머리글 셀 DataGridViewColumnHeaderCell
행 머리글 셀 DataGridViewRow
DataGridViewCell
스크롤 막대 AccessibleObject

적용 대상

추가 정보