DataGridViewCell.MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs) Method

定義

指出當使用者按兩下資料列中的儲存格時,是否取消共用該資料列。Indicates whether a row will be unshared if the user double-clicks a cell in the row.

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

參數

傳回

如果會取消共用資料列則為 true,否則為 falsetrue if the row will be unshared, otherwise, false. 基底 DataGridViewCell 類別永遠會傳回 falseThe base DataGridViewCell class always returns false.

備註

方法只會在OnMouseDoubleClick方法之前呼叫。 MouseDoubleClickUnsharesRowThe MouseDoubleClickUnsharesRow method is called just before the OnMouseDoubleClick method. true如果的OnMouseDoubleClick呼叫具有將包含儲存格的資料列取消共用的效果,則必須傳回。It must return true if the call to OnMouseDoubleClick has the effect of unsharing the row containing the cell. 否則,它應該false會傳回。Otherwise, it should return false.

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

適用於

另請參閱