DataGridViewCell.OnMouseEnter メソッド
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)


このメソッドは、DataGridView.OnCellMouseEnter メソッドに似ています。このメソッドは、DataGridView.CellMouseEnter イベントが発生するときと同じ状況で呼び出されますが、実際にイベントは発生しません。

このメソッドの使用方法を次のコード例に示します。次の例は「方法 : Windows フォーム DataGridView コントロールのセルと列を、それぞれの動作と外観を拡張してカスタマイズする」で取り上げている例の一部です。
' Force the cell to repaint itself when the mouse pointer enters it. Protected Overrides Sub OnMouseEnter(ByVal rowIndex As Integer) Me.DataGridView.InvalidateCell(Me) End Sub ' Force the cell to repaint itself when the mouse pointer leaves it. Protected Overrides Sub OnMouseLeave(ByVal rowIndex As Integer) Me.DataGridView.InvalidateCell(Me) End Sub
// Force the cell to repaint itself when the mouse pointer enters it. protected override void OnMouseEnter(int rowIndex) { this.DataGridView.InvalidateCell(this); } // Force the cell to repaint itself when the mouse pointer leaves it. protected override void OnMouseLeave(int rowIndex) { this.DataGridView.InvalidateCell(this); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataGridViewCell クラス
DataGridViewCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.OnCellMouseEnter
DataGridView.CellMouseEnter イベント
OnMouseClick
OnMouseDoubleClick
OnMouseDown
MouseEnterUnsharesRow
OnMouseLeave
OnMouseMove
OnMouseUp
Weblioに収録されているすべての辞書からDataGridViewCell.OnMouseEnter メソッドを検索する場合は、下記のリンクをクリックしてください。

- DataGridViewCell.OnMouseEnter メソッドのページへのリンク