DataGridViewCell.MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs) DataGridViewCell.MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs) Method

定義

指出當滑鼠指標移到某資料列的儲存格上方時,是否取消共用該資料列。Indicates whether a row will be unshared when the mouse pointer moves over a cell in the row.

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

參數

傳回

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

備註

方法只會在OnMouseMove方法之前呼叫。 MouseMoveUnsharesRowThe MouseMoveUnsharesRow method is called just before the OnMouseMove method. 在衍生類別中, true如果的OnMouseMove呼叫具有將包含儲存格的資料列取消共用的效果,則必須傳回。In derived classes, it must return true if the call to OnMouseMove 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.

適用於

另請參閱