DataGridViewCell.LeaveUnsharesRow(Int32, Boolean) 메서드

정의

포커스가 행의 셀을 벗어난 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

protected:
 virtual bool LeaveUnsharesRow(int rowIndex, bool throughMouseClick);
protected virtual bool LeaveUnsharesRow (int rowIndex, bool throughMouseClick);
abstract member LeaveUnsharesRow : int * bool -> bool
override this.LeaveUnsharesRow : int * bool -> bool
Protected Overridable Function LeaveUnsharesRow (rowIndex As Integer, throughMouseClick As Boolean) As Boolean

매개 변수

rowIndex
Int32

셀의 부모 행의 인덱스입니다.

throughMouseClick
Boolean

사용자 작업을 통해 포커스가 셀로 이동했으면true 이고, 프로그래밍 작업을 통해 포커스가 셀로 이동했으면 false 입니다.

반환

행을 공유하지 않으면 true이고, 그렇지 않으면 false입니다. 기본 DataGridViewCell 클래스는 항상 false를 반환합니다.

설명

메서드는 LeaveUnsharesRow 메서드 바로 앞에 호출됩니다 OnLeave . 에 대한 호출 OnLeave 이 셀을 포함하는 행의 공유를 해제하는 효과가 있는 경우 를 반환 true 해야 합니다. 그렇지 않으면 를 반환 false해야 합니다.

행 공유에 대한 자세한 내용은 Windows Forms DataGridView 컨트롤의 크기를 조정하는 최선의 방법을 참조하세요.

적용 대상

추가 정보