DataGridViewCellStateChangedEventArgs クラス

定義

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

public ref class DataGridViewCellStateChangedEventArgs : EventArgs
public class DataGridViewCellStateChangedEventArgs : EventArgs
type DataGridViewCellStateChangedEventArgs = class
    inherit EventArgs
Public Class DataGridViewCellStateChangedEventArgs
Inherits EventArgs
継承
DataGridViewCellStateChangedEventArgs

次のコード例は、この型の使用方法を示しています。

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");
}
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

注釈

プロパティを Cell 使用して、変更されたセルを確認します。 プロパティを StateChanged 使用して、変更されたセルの状態を確認します。

イベントを処理する方法の詳細については、次を参照してください。処理とイベントの発生します。

コンストラクター

DataGridViewCellStateChangedEventArgs(DataGridViewCell, DataGridViewElementStates)

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

プロパティ

Cell

状態が変更された DataGridViewCell を取得します。

StateChanged

セルの変更された状態を取得します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください