語言

DataGridViewCheckBoxCell.MouseUpUnsharesRow 方法

定義

表示當滑鼠按鈕放開且指標位於該儲存格上時,包含該儲存格的列是否會被取消共享。

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

參數

傳回

一律為 true。

備註

對於此儲存格類型,當滑鼠在指標覆蓋該儲存格時放開,總會取消包含該儲存格的該列。

MouseUpUnsharesRow 在 之前稱為 OnMouseUp。 如果呼叫 的true結果是取消了包含該儲存格的該列,則必須返回OnMouseUp。 否則應該會恢復 false 正常。

如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。

適用於

另請參閱