UndoService 1.1.0
See the version list below for details.
dotnet add package UndoService --version 1.1.0
NuGet\Install-Package UndoService -Version 1.1.0
<PackageReference Include="UndoService" Version="1.1.0" />
paket add UndoService --version 1.1.0
#r "nuget: UndoService, 1.1.0"
// Install UndoService as a Cake Addin #addin nuget:?package=UndoService&version=1.1.0 // Install UndoService as a Cake Tool #tool nuget:?package=UndoService&version=1.1.0
UndoService
Generic undo service using delegates to access state. https://github.com/peterdongan/UndoService
USAGE
Constructor
Set the type that is used to record the state. Pass the delegate methods that are used to get and set the state. (If necessary use a wrapper to match the expected signature.) Optionally set a cap on the number of states stored.
UndoService(GetState<T> getState, SetState<T> setState, int? cap)
If there is no cap then stacks are used to store the states. If there is a cap then a dropout stack is used for the undo stack.
Properties
Check CanUndo and CanRedo properties before invoking Undo() or Redo() respectively.
bool CanUndo
bool CanRedo
Methods
Invoke RecordState() to add the current state to the undo history.
void RecordState()
void Undo()
void Redo()
void Clear()
LICENCE
MIT
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.3.2 | 2,004 | 11/17/2020 |
2.3.1 | 484 | 7/22/2020 |
2.3.1-alpha | 347 | 7/21/2020 |
2.3.0-alpha | 350 | 7/21/2020 |
2.2.3-alpha | 324 | 7/15/2020 |
2.2.2-alpha | 350 | 6/22/2020 |
2.2.0-alpha | 353 | 6/3/2020 |
2.1.11 | 487 | 6/2/2020 |
2.1.11-alpha | 350 | 5/28/2020 |
2.1.10-alpha | 368 | 5/28/2020 |
2.1.9-alpha | 320 | 5/28/2020 |
2.1.8-alpha | 366 | 5/28/2020 |
2.1.7-alpha | 370 | 5/27/2020 |
2.1.6-alpha | 318 | 5/26/2020 |
2.1.5-alpha | 302 | 5/26/2020 |
2.1.4-alpha | 328 | 5/26/2020 |
2.1.3-alpha | 357 | 5/25/2020 |
2.1.2-alpha | 370 | 5/25/2020 |
2.0.2 | 490 | 5/21/2020 |
1.1.0 | 503 | 3/27/2020 |
1.0.0 | 513 | 3/16/2020 |
Namespace changed.