DataGridViewButtonCell.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
當前儲存格的列索引,若該儲存格不屬於某列,則為 -1。
傳回
true如果該小格顯示的按鈕處於按下狀態;否則,。 false
備註
MouseLeaveUnsharesRow該方法在方法之前OnMouseLeave被呼叫。
MouseLeaveUnsharesRow
true若呼叫 的OnMouseLeave結果是取消了由 rowIndex所指定的列的 。 否則應該會恢復 false 正常。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。