共用方式為


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 屬性。

適用於

另請參閱