DataGridViewCheckBoxCell.MouseDownUnsharesRow(DataGridViewCellMouseEventArgs) 方法

定義

指出當滑鼠指標在儲存格上方而按下滑鼠按鈕時,包含儲存格的資料列是否會取消共用。Indicates whether the row containing the cell will be unshared when the mouse button is pressed while the pointer is over the cell.

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,包含滑鼠點選的相關資料。A DataGridViewCellMouseEventArgs that contains data about the mouse click.

傳回

Boolean

一定是 trueAlways true.

備註

按下滑鼠按鍵時,一律會 unshares 包含此類型之儲存格的資料列。Pressing the mouse button always unshares a row containing a cell of this type.

MouseDownUnsharesRow 只會在之前呼叫 OnMouseDownMouseDownUnsharesRow is called just before OnMouseDown. true如果的呼叫具有將包含資料 OnMouseDown 格的資料列取消共用的效果,則必須傳回。It must return true if the call to OnMouseDown has the effect of unsharing the row containing the cell. 它應該會傳回,否則會傳回 falseIt should return false otherwise.

如需有關資料列共用的詳細資訊,請參閱 調整 Windows Forms DataGridView 控制項的最佳做法For more information about row sharing, see Best Practices for Scaling the Windows Forms DataGridView Control.

適用於

另請參閱