語言

DataGridViewCheckBoxCell.MouseLeaveUnsharesRow(Int32) 方法

定義

表示當滑鼠指標離開該儲存格時,包含該儲存格的列是否會被非共享。

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

包含該格子的列索引。

傳回

true 如果按鈕不在正常狀態; false 如果按鈕處於按下狀態。

備註

MouseLeaveUnsharesRow 在 之前稱為 OnMouseLeave。 如果呼叫 的true結果是取消了包含該儲存格的該列,則必須返回OnMouseLeave。 否則應該會恢復 false 正常。

如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。

適用於

另請參閱