Class RevertibleService
- Namespace
- H.Extensions.Revertible
- Assembly
- H.Extensions.Revertible.dll
public class RevertibleService : BindableBase, INotifyPropertyChanged, IRevertibleService
- Inheritance
-
RevertibleService
- Implements
- Inherited Members
- Extension Methods
Constructors
RevertibleService(IOptions<RevertibleOptions>)
public RevertibleService(IOptions<RevertibleOptions> options)
Parameters
options
IOptions<RevertibleOptions>
Properties
CanRedo
public bool CanRedo { get; }
Property Value
CanUndo
public bool CanUndo { get; }
Property Value
Current
public IRevertible Current { get; }
Property Value
IsInitialized
public bool IsInitialized { get; }
Property Value
Position
public int Position { get; }
Property Value
Revertibles
public IReadOnlyCollection<IRevertible> Revertibles { get; }
Property Value
Methods
Begin(string, object)
public RevertibleDisposer Begin(string name = null, object data = null)
Parameters
Returns
Cancel()
不提交历史记录
public void Cancel()
Commit()
提交到历史记录
public void Commit()
Initialize()
public void Initialize()
Redo()
public void Redo()
Undo()
public void Undo()