DataGridViewCell.ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs) DataGridViewCell.ContentDoubleClickUnsharesRow(DataGridViewCellEventArgs) Method

定義

指出當按兩下儲存格內容時,儲存格的資料列是否會取消共用。Indicates whether the cell's row will be unshared when the cell's content is double-clicked.

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

參數

傳回

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

備註

方法只會在OnContentDoubleClick方法之前呼叫。 ContentDoubleClickUnsharesRowThe ContentDoubleClickUnsharesRow method is called just before the OnContentDoubleClick method. true如果的OnContentDoubleClick呼叫具有取消共用儲存格的資料列的效果,則必須傳回。It must return true if the call to OnContentDoubleClick has the effect of unsharing the cell's row. 否則,它應該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.

適用於

另請參閱