Click or drag to resize

BcfColumnTDiscardAction Property

[This is preliminary documentation and is subject to change.]

Gets the discard action.

Namespace:  CalculationWorks.BusinessModel
Assembly:  CalculationWorks.BusinessModel (in CalculationWorks.BusinessModel.dll) Version: 4.0.0-beta7
Syntax
public BcfDiscard<T> DiscardAction { get; }

Return Value

Type: BcfDiscardT
The discard action if set; otherwise null.
Remarks

If using memory undo a cell-value will be passed to DiscardAction when the last reference in UndoRepository is removed (e.g. calling Clear(Boolean) or DisableUndo(Boolean)). With disabled or file-based undo/redo OnDiscard() will be invoked after Commit. Undo(Int32) and Rollback will work same way.

if cell-value equals (evaluated via columns EqualityComparer) columns DefaultValue the call will be omitted.

See Also