DataGridViewCheckBoxCell.MouseLeaveUnsharesRow(Int32) 方法

定義

指出當滑鼠指標離開儲存格時,包含儲存格的資料列是否會取消共用。Indicates whether the row containing the cell will be unshared when the mouse pointer leaves the cell.

protected:
 override bool MouseLeaveUnsharesRow(int rowIndex);
protected override bool MouseLeaveUnsharesRow (int rowIndex);
override this.MouseLeaveUnsharesRow : int -> bool
Protected Overrides Function MouseLeaveUnsharesRow (rowIndex As Integer) As Boolean

參數

rowIndex
Int32

包含儲存格的資料列之索引。The index of the row containing the cell.

傳回

Boolean

如果此按鈕不是處於正常狀態,則為 true,否則為 falsetrue if the button is not in the normal state; false if the button is in the pressed state.

備註

MouseLeaveUnsharesRow 只會在之前呼叫 OnMouseLeaveMouseLeaveUnsharesRow is called just before OnMouseLeave. true如果的呼叫具有將包含資料 OnMouseLeave 格的資料列取消共用的效果,則必須傳回。It must return true if the call to OnMouseLeave has the effect of unsharing the row containing the cell. 它應該會傳回,否則會傳回 falseIt should return false otherwise.

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

適用於

另請參閱