DataGridViewCheckBoxCell.MouseLeaveUnsharesRow(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當滑鼠指標離開該儲存格時,包含該儲存格的列是否會被非共享。
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 控制項的最佳做法。