語言

DataGridViewCheckBoxCell.MouseEnterUnsharesRow(Int32) 方法

定義

表示當滑鼠指標移動到該儲存格時,該列是否會被取消共享。

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

包含該格子的列索引。

傳回

true如果該格是最後一個收到滑鼠點擊的格子;否則,。 false

備註

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

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

適用於

另請參閱