DataGridViewCell.MouseClickUnsharesRow(DataGridViewCellMouseEventArgs) 方法

定義

指出當指標在資料列的儲存格上,而使用者按一下滑鼠按鈕時,該資料列是否取消共用。

protected:
 virtual bool MouseClickUnsharesRow(System::Windows::Forms::DataGridViewCellMouseEventArgs ^ e);
protected virtual bool MouseClickUnsharesRow (System.Windows.Forms.DataGridViewCellMouseEventArgs e);
abstract member MouseClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
override this.MouseClickUnsharesRow : System.Windows.Forms.DataGridViewCellMouseEventArgs -> bool
Protected Overridable Function MouseClickUnsharesRow (e As DataGridViewCellMouseEventArgs) As Boolean

參數

傳回

如果會取消共用資料列則為 true,否則為 false。 基底 DataGridViewCell 類別永遠會傳回 false

備註

方法 MouseClickUnsharesRow 會在方法之前 OnMouseClick 呼叫。 如果的呼叫OnMouseClick具有取消共用包含儲存格之資料列的效果,則它必須傳回 true 。 否則,它應該會傳回 false

如需數據列共用的詳細資訊,請參閱調整 Windows Forms DataGridView 控件的最佳做法

適用於

另請參閱