DataGridViewCellMouseEventArgs.RowIndex プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > DataGridViewCellMouseEventArgs.RowIndex プロパティの意味・解説 

DataGridViewCellMouseEventArgs.RowIndex プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

セルの 0 から始まる行インデックス取得します

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

Dim instance As DataGridViewCellMouseEventArgs
Dim value As Integer

value = instance.RowIndex
public int RowIndex { get;
 }
public:
property int RowIndex {
    int get ();
}
/** @property */
public int get_RowIndex ()

プロパティ
インデックス指定する整数

使用例使用例

この型の使用方法次のコード例示します

' Override OnMouseClick in a class derived from DataGridViewCell to
 
' enter edit mode when the user clicks the cell. 
Protected Overrides Sub
 OnMouseClick( _
    ByVal e As DataGridViewCellMouseEventArgs)

    If MyBase.DataGridView IsNot Nothing
 Then

        Dim point1 As Point = MyBase.DataGridView.CurrentCellAddress
        If point1.X = e.ColumnIndex And _
            point1.Y = e.RowIndex And _
            e.Button = MouseButtons.Left And _
            Not MyBase.DataGridView.EditMode
 = _
            DataGridViewEditMode.EditProgrammatically Then

            MyBase.DataGridView.BeginEdit(True)

        End If
    End If
End Sub
// Override OnMouseClick in a class derived from DataGridViewCell to
 
// enter edit mode when the user clicks the cell. 
protected override void OnMouseClick(DataGridViewCellMouseEventArgs
 e)
{
    if (base.DataGridView != null)
    {
        Point point1 = base.DataGridView.CurrentCellAddress;
        if (point1.X == e.ColumnIndex &&
            point1.Y == e.RowIndex &&
            e.Button == MouseButtons.Left &&
            base.DataGridView.EditMode !=
            DataGridViewEditMode.EditProgrammatically)
        {
            base.DataGridView.BeginEdit(true);
        }
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCellMouseEventArgs クラス
DataGridViewCellMouseEventArgs メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.Rows プロパティ
DataGridViewCell クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からDataGridViewCellMouseEventArgs.RowIndex プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からDataGridViewCellMouseEventArgs.RowIndex プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からDataGridViewCellMouseEventArgs.RowIndex プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

DataGridViewCellMouseEventArgs.RowIndex プロパティのお隣キーワード
検索ランキング

   

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



DataGridViewCellMouseEventArgs.RowIndex プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS