DataGridViewCell.MouseEnterUnsharesRow(Int32) DataGridViewCell.MouseEnterUnsharesRow(Int32) DataGridViewCell.MouseEnterUnsharesRow(Int32) DataGridViewCell.MouseEnterUnsharesRow(Int32) Method

定義

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

protected:
 virtual bool MouseEnterUnsharesRow(int rowIndex);
protected virtual bool MouseEnterUnsharesRow (int rowIndex);
abstract member MouseEnterUnsharesRow : int -> bool
override this.MouseEnterUnsharesRow : int -> bool
Protected Overridable Function MouseEnterUnsharesRow (rowIndex As Integer) As Boolean

參數

rowIndex
Int32 Int32 Int32 Int32

儲存格的父資料列索引。The index of the cell's parent row.

傳回

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

備註

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

適用於

另請參閱