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

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

DataGridViewCell.RowIndex プロパティ

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

セルの親行のインデックス取得します

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

Dim instance As DataGridViewCell
Dim value As Integer

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

プロパティ
セル格納されている行のインデックスセル所有している行がない場合は -1。

解説解説
使用例使用例

このプロパティ使用方法を示すコード例次に示します

Private Sub getCurrentCellButton_Click(ByVal
 sender As Object, _
    ByVal e As System.EventArgs) Handles
 getCurrentCellButton.Click

    Dim msg As String =
 String.Format("Row: {0}, Column: {1}",
 _
        dataGridView1.CurrentCell.RowIndex, _
        dataGridView1.CurrentCell.ColumnIndex)
    MessageBox.Show(msg, "Current Cell")

End Sub
private void getCurrentCellButton_Click(object
 sender, System.EventArgs e)
{
    string msg = String.Format("Row: {0}, Column: {1}"
,
        dataGridView1.CurrentCell.RowIndex,
        dataGridView1.CurrentCell.ColumnIndex);
    MessageBox.Show(msg, "Current Cell");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


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

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

辞書ショートカット

すべての辞書の索引

「DataGridViewCell.RowIndex プロパティ」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS