DataGridViewHeaderCell.MouseEnterUnsharesRow(Int32) 메서드

정의

마우스 포인터가 행의 셀 위로 이동할 때 행이 공유되지 않는지 여부를 나타냅니다.

protected:
 override bool MouseEnterUnsharesRow(int rowIndex);
protected override bool MouseEnterUnsharesRow(int rowIndex);
override this.MouseEnterUnsharesRow : int -> bool
Protected Overrides Function MouseEnterUnsharesRow (rowIndex As Integer) As Boolean

매개 변수

rowIndex
Int32

마우스 포인터가 입력한 행의 인덱스입니다.

반품

true비주얼 스타일을 사용 하 고 EnableHeadersVisualStyles 속성이 trueDataGridView및 속성이 아닌 null경우 ; 그렇지 않으면 . false

설명

비주얼 스타일을 사용하도록 설정하는 방법에 대한 자세한 내용은 메서드를 참조하세요 Application.EnableVisualStyles .

MouseEnterUnsharesRow 는 바로 전에 OnMouseEnter호출됩니다. 호출 true 이 행OnMouseEnter을 공유 해제하는 효과가 있는 경우 반환 rowIndex 해야 합니다. 그렇지 않으면 반환 false 되어야 합니다.

행 공유에 대한 자세한 내용은 Windows Forms DataGridView 컨트롤 확장을 위한 모범 사례를 참조하세요.

상속자 참고

파생 클래스에서 MouseEnterUnsharesRow(Int32)를 재정의할 때, 등록된 대리자가 이벤트를 받도록 기본 클래스의 MouseEnterUnsharesRow(Int32) 메서드를 반드시 호출해야 합니다.

적용 대상

추가 정보