DataGridViewCellStateChangedEventArgs 构造函数

定义

初始化 DataGridViewCellStateChangedEventArgs 类的新实例。

public:
 DataGridViewCellStateChangedEventArgs(System::Windows::Forms::DataGridViewCell ^ dataGridViewCell, System::Windows::Forms::DataGridViewElementStates stateChanged);
public DataGridViewCellStateChangedEventArgs (System.Windows.Forms.DataGridViewCell dataGridViewCell, System.Windows.Forms.DataGridViewElementStates stateChanged);
new System.Windows.Forms.DataGridViewCellStateChangedEventArgs : System.Windows.Forms.DataGridViewCell * System.Windows.Forms.DataGridViewElementStates -> System.Windows.Forms.DataGridViewCellStateChangedEventArgs
Public Sub New (dataGridViewCell As DataGridViewCell, stateChanged As DataGridViewElementStates)

参数

dataGridViewCell
DataGridViewCell

更改了状态的 DataGridViewCell

stateChanged
DataGridViewElementStates

DataGridViewElementStates 值之一,指示单元格的状态已更改。

例外

dataGridViewCellnull

注解

此方法使用参数值初始化 CellStateChanged 属性。

适用于

另请参阅