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