DataGridViewCell.MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs) 方法

定義

指出當使用者按兩下資料列中的儲存格時,是否取消共用該資料列。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

參數

e
DataGridViewCellMouseEventArgs

DataGridViewCellMouseEventArgs,其中包含事件資料。A DataGridViewCellMouseEventArgs that contains the event data.

傳回

Boolean

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

備註

MouseDoubleClickUnsharesRow方法只會在方法之前呼叫 OnMouseDoubleClickThe 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. 否則,它應該會傳回 falseOtherwise, it should return false.

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

適用於

另請參閱