DataGridCell.OnColumnChanged(DataGridColumn, DataGridColumn) 方法

定義

在儲存格的 Column 屬性變更時呼叫。Called when the cell's Column property changes.

protected:
 virtual void OnColumnChanged(System::Windows::Controls::DataGridColumn ^ oldColumn, System::Windows::Controls::DataGridColumn ^ newColumn);
protected virtual void OnColumnChanged (System.Windows.Controls.DataGridColumn oldColumn, System.Windows.Controls.DataGridColumn newColumn);
abstract member OnColumnChanged : System.Windows.Controls.DataGridColumn * System.Windows.Controls.DataGridColumn -> unit
override this.OnColumnChanged : System.Windows.Controls.DataGridColumn * System.Windows.Controls.DataGridColumn -> unit
Protected Overridable Sub OnColumnChanged (oldColumn As DataGridColumn, newColumn As DataGridColumn)

參數

oldColumn
DataGridColumn

舊的資料行定義。The old column definition.

newColumn
DataGridColumn

新的資料行定義。The new column definition.

備註

如果對目前的資料行定義進行變更,則不會呼叫這個方法。This method is not called if changes are made to the current column definition. 只有在設定屬性時,才會呼叫它 ColumnIt is called only if the Column property is set.

適用於