DataGridViewCellStateChangedEventArgs 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 值之一,指示单元格的状态已更改。
例外
dataGridViewCell
为 null
。
注解
此方法使用参数值初始化 Cell 和 StateChanged 属性。