DataGridViewCellStateChangedEventArgsとは? わかりやすく解説

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

DataGridViewCellStateChangedEventArgs クラス

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

CellStateChanged イベントデータ提供します

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

Public Class DataGridViewCellStateChangedEventArgs
    Inherits EventArgs
Dim instance As DataGridViewCellStateChangedEventArgs
public class DataGridViewCellStateChangedEventArgs
 : EventArgs
public ref class DataGridViewCellStateChangedEventArgs
 : public EventArgs
public class DataGridViewCellStateChangedEventArgs
 extends EventArgs
public class DataGridViewCellStateChangedEventArgs
 extends EventArgs
解説解説
使用例使用例

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

Private Sub dataGridView1_CellStateChanged(ByVal
 sender As Object, _
    ByVal e As DataGridViewCellStateChangedEventArgs)
 _
    Handles dataGridView1.CellStateChanged

    Dim state As DataGridViewElementStates
 = e.StateChanged
    Dim msg As String =
 String.Format( _
        "Row {0}, Column {1}, {2}", _
        e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged)
    MessageBox.Show(msg, "Cell State Changed")

End Sub
private void dataGridView1_CellStateChanged(object
 sender,
    DataGridViewCellStateChangedEventArgs e)
{
    DataGridViewElementStates state = e.StateChanged;
    string msg = String.Format("Row {0}, Column {1}, {2}"
,
        e.Cell.RowIndex, e.Cell.ColumnIndex, e.StateChanged);
    MessageBox.Show(msg, "Cell State Changed");
}
継承階層継承階層
System.Object
   System.EventArgs
    System.Windows.Forms.DataGridViewCellStateChangedEventArgs
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCellStateChangedEventArgs メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.CellStateChanged イベント
Cell
DataGridViewCell クラス
StateChanged
DataGridViewElementStates
DataGridViewCellStateChangedEventHandler

DataGridViewCellStateChangedEventArgs コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

DataGridViewCellStateChangedEventArgs クラス新しインスタンス初期化します。

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

Public Sub New ( _
    dataGridViewCell As DataGridViewCell, _
    stateChanged As DataGridViewElementStates _
)
Dim dataGridViewCell As DataGridViewCell
Dim stateChanged As DataGridViewElementStates

Dim instance As New DataGridViewCellStateChangedEventArgs(dataGridViewCell,
 stateChanged)
public DataGridViewCellStateChangedEventArgs (
    DataGridViewCell dataGridViewCell,
    DataGridViewElementStates stateChanged
)
public:
DataGridViewCellStateChangedEventArgs (
    DataGridViewCell^ dataGridViewCell, 
    DataGridViewElementStates stateChanged
)
public DataGridViewCellStateChangedEventArgs (
    DataGridViewCell dataGridViewCell, 
    DataGridViewElementStates stateChanged
)
public function DataGridViewCellStateChangedEventArgs
 (
    dataGridViewCell : DataGridViewCell, 
    stateChanged : DataGridViewElementStates
)

パラメータ

dataGridViewCell

状態が変更された DataGridViewCell。

stateChanged

セル変更された状態を示す DataGridViewElementStates 値の 1 つ

例外例外
例外種類条件

ArgumentNullException

dataGridViewCellnull 参照 (Visual Basic では Nothing) です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
DataGridViewCellStateChangedEventArgs クラス
DataGridViewCellStateChangedEventArgs メンバ
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.CellStateChanged イベント
DataGridViewCell クラス
Cell
DataGridViewElementStates
StateChanged

DataGridViewCellStateChangedEventArgs プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ Cell 状態が変更された DataGridViewCell を取得します
パブリック プロパティ StateChanged セル変更された状態を取得します
参照参照

関連項目

DataGridViewCellStateChangedEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.CellStateChanged イベント
Cell
DataGridViewCell クラス
StateChanged
DataGridViewElementStates
DataGridViewCellStateChangedEventHandler

DataGridViewCellStateChangedEventArgs メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DataGridViewCellStateChangedEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.CellStateChanged イベント
Cell
DataGridViewCell クラス
StateChanged
DataGridViewElementStates
DataGridViewCellStateChangedEventHandler

DataGridViewCellStateChangedEventArgs メンバ

CellStateChanged イベントデータ提供します

DataGridViewCellStateChangedEventArgs データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド DataGridViewCellStateChangedEventArgs DataGridViewCellStateChangedEventArgs クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ Cell 状態が変更された DataGridViewCell を取得します
パブリック プロパティ StateChanged セル変更された状態を取得します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

DataGridViewCellStateChangedEventArgs クラス
System.Windows.Forms 名前空間
DataGridView クラス
DataGridView.CellStateChanged イベント
Cell
DataGridViewCell クラス
StateChanged
DataGridViewElementStates
DataGridViewCellStateChangedEventHandler



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

辞書ショートカット

すべての辞書の索引

「DataGridViewCellStateChangedEventArgs」の関連用語

DataGridViewCellStateChangedEventArgsのお隣キーワード
検索ランキング

   

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



DataGridViewCellStateChangedEventArgsのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS