DataGridViewHeaderCell.MouseDownUnsharesRow 메서드

정의

포인터가 행의 셀에 있는 동안 마우스 단추를 누르고 있는 경우 행을 공유하지 않을 것인지 여부를 나타냅니다.

protected:
 override bool MouseDownUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected override bool MouseDownUnsharesRow (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
override this.MouseDownUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overrides Function MouseDownUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

매개 변수

e
DataGridViewCellMouseEventArgs

마우스 위치에 대한 정보가 포함된 DataGridViewCellMouseEventArgs입니다.

반환

true 사용자가 마우스 왼쪽 단추를 사용하여 클릭하면 시각적 스타일이 활성화 EnableHeadersVisualStyles 되고 속성이 true이고 속성이 DataGridView 이 아니 null면 이고, false그렇지 않으면 입니다.

설명

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

MouseDownUnsharesRow 은 바로 전에 OnMouseDown호출됩니다. 에 대한 호출 OnMouseDown 이 행 rowIndex공유를 해제하는 효과가 있는 경우 를 반환 true 해야 합니다. 그렇지 않으면 를 반환 false 해야 합니다.

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

적용 대상

추가 정보