Table of Contents

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

bool

CanUndo

public bool CanUndo { get; }

Property Value

bool

Current

public IRevertible Current { get; }

Property Value

IRevertible

IsInitialized

public bool IsInitialized { get; }

Property Value

bool

Position

public int Position { get; }

Property Value

int

Revertibles

public IReadOnlyCollection<IRevertible> Revertibles { get; }

Property Value

IReadOnlyCollection<IRevertible>

Methods

Begin(string, object)

public RevertibleDisposer Begin(string name = null, object data = null)

Parameters

name string
data object

Returns

RevertibleDisposer

Cancel()

不提交历史记录

public void Cancel()

Commit()

提交到历史记录

public void Commit()

Initialize()

public void Initialize()

Redo()

public void Redo()

Undo()

public void Undo()