API ReferenceSandbox.Helpers

IUndoSystemclass

Interface for an undo/redo edit history system.

object→IUndoSystem
Namespace
Sandbox.Helpers
Assembly
Sandbox.Tools
Declaration
public abstract interface Sandbox.Helpers.IUndoSystem

Methods2

Showing 2 methods

public virtual bool Redo()PUBLICVIRTUAL

Redoes the last undone change, or returns false if there was no undone change to redo.

Returns:bool—

public virtual bool Undo()PUBLICVIRTUAL

Undoes the last change made. Calling `Sandbox.Helpers.IUndoSystem.Redo` should now re-apply that change. Returns false if there was no change to undo.

Returns:bool—

Properties2

Showing 2 properties

public virtual System.Nullable`1<System.DateTime> Sandbox.Helpers.IUndoSystem.RedoTimestamp { get; set; }PUBLICVIRTUALGETSET

Timestamp of the last undone change, or null if there's nothing to redo.

Returns:Nullable<DateTime>—

public virtual System.Nullable`1<System.DateTime> Sandbox.Helpers.IUndoSystem.UndoTimestamp { get; set; }PUBLICVIRTUALGETSET

Timestamp of the last change made, or null if there's nothing to undo.

Returns:Nullable<DateTime>—

On this page