DataGridViewHeaderCell.MouseEnterUnsharesRow メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewHeaderCell.MouseEnterUnsharesRow メソッドの意味・解説 

DataGridViewHeaderCell.MouseEnterUnsharesRow メソッド

メモ : このメソッドは、.NET Framework version 2.0 で新しく追加されたものです。

マウス ポインタを行のセル上に移動したときに、その行の共有を解除するかどうかを示します。

名前空間: System.Windows.Forms
アセンブリ: System.Windows.Forms (system.windows.forms.dll 内)
構文構文

Protected Overrides Function
 MouseEnterUnsharesRow ( _
    rowIndex As Integer _
) As Boolean
Dim rowIndex As Integer
Dim returnValue As Boolean

returnValue = Me.MouseEnterUnsharesRow(rowIndex)
protected override bool MouseEnterUnsharesRow
 (
    int rowIndex
)
protected:
virtual bool MouseEnterUnsharesRow (
    int rowIndex
) override
protected boolean MouseEnterUnsharesRow (
    int rowIndex
)
protected override function MouseEnterUnsharesRow
 (
    rowIndex : int
) : boolean

パラメータ

rowIndex

マウス ポインタが入った行のインデックス。

戻り値
visual スタイルが有効で、かつ DataGridView.EnableHeadersVisualStyles プロパティが true である場合は true。それ以外の場合は false。

解説解説

visual スタイルを有効にする方法の詳細については、Application.EnableVisualStyles メソッドのトピックを参照してください。

MouseEnterUnsharesRow は、OnMouseEnter の直前に呼び出されます。OnMouseEnter の呼び出しによって行 rowIndex の共有が解除される場合は、true を返します。それ以外の場合は、false を返します。

行の共有の詳細については、「Windows フォーム DataGridView コントロールを拡張するための推奨される手順」を参照してください。

継承時の注意 派生クラスで MouseEnterUnsharesRow をオーバーライドする場合は、登録されているデリゲートがイベントを受け取ることができるように、基本クラスの MouseEnterUnsharesRow メソッドを必ず呼び出してください。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewHeaderCell クラス
DataGridViewHeaderCell メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridViewRowHeaderCell
DataGridViewColumnHeaderCell クラス
DataGridViewTopLeftHeaderCell
OnMouseEnter
その他の技術情報
Windows フォーム DataGridView コントロールを拡張するための推奨される手順



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

DataGridViewHeaderCell.MouseEnterUnsharesRow メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DataGridViewHeaderCell.MouseEnterUnsharesRow メソッドのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS