語言

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被呼叫。 如果呼叫 的true結果是取消了包含該儲存格的該列,則必須返回OnMouseClick。 否則,它應該會返回 false。

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

適用於

另請參閱