DataGridViewButtonCell.MouseEnterUnsharesRow(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當滑鼠指標移動到該列中的某個格子時,該列是否會被取消共享。
protected:
override bool MouseEnterUnsharesRow(int rowIndex);
protected override bool MouseEnterUnsharesRow(int rowIndex);
override this.MouseEnterUnsharesRow : int -> bool
Protected Overrides Function MouseEnterUnsharesRow (rowIndex As Integer) As Boolean
參數
- rowIndex
- Int32
當前儲存格的列索引,若該儲存格不屬於某列,則為 -1。
傳回
true如果該格是最後一個收到滑鼠點擊的格子;否則,。 false
備註
MouseEnterUnsharesRow該方法在方法之前OnMouseEnter被呼叫。 如果呼叫 的true結果是將該列 OnMouseEnter取消共享,則必須返回rowIndex。 否則應該會恢復 false 正常。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。