DataGridViewCell.MouseEnterUnsharesRow(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示當滑鼠指標移動到該列中的某個格子時,該列是否會被取消共享。
protected:
virtual bool MouseEnterUnsharesRow(int rowIndex);
protected virtual bool MouseEnterUnsharesRow(int rowIndex);
abstract member MouseEnterUnsharesRow : int -> bool
override this.MouseEnterUnsharesRow : int -> bool
Protected Overridable Function MouseEnterUnsharesRow (rowIndex As Integer) As Boolean
參數
- rowIndex
- Int32
該格子父列的索引。
傳回
true 如果該列將是未共享的,否則, false。 基底 DataGridViewCell 類別總是回傳 false。
備註
MouseEnterUnsharesRow該方法在方法之前OnMouseEnter被呼叫。 在導出類別中,若呼叫 會true解除包含該儲存格的列,則必須回傳OnMouseEnter。 否則,它應該會返回 false。
如需有關資料列共用的詳細資訊,請參閱縮放 Windows Forms DataGridView 控制項的最佳做法。
適用於
另請參閱
- DataGridView
- MouseClickUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseDoubleClickUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseDownUnsharesRow(DataGridViewCellMouseEventArgs)
- OnMouseEnter(Int32)
- MouseLeaveUnsharesRow(Int32)
- MouseMoveUnsharesRow(DataGridViewCellMouseEventArgs)
- MouseUpUnsharesRow(DataGridViewCellMouseEventArgs)
- 縮放 Windows Forms DataGridView 控制項的最佳作法