GH_ArchivedUndoAction
Base class implementation for undo actions that require (de)serialization of data.
Inheritance Hierarchy
System.Object
Grasshopper.Kernel.Undo.GH_UndoAction
Grasshopper.Kernel.Undo.GH_ArchivedUndoAction
Grasshopper.Kernel.Undo.Actions.GH_AddStateAction
Grasshopper.Kernel.Undo.Actions.GH_GenericObjectAction
Grasshopper.Kernel.Undo.Actions.GH_RemoveObjectAction
Grasshopper.Kernel.Undo.Actions.GH_RemoveStateAction
Namespace: Grasshopper.Kernel.Undo
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public abstract class GH_ArchivedUndoAction : GH_UndoAction
The GH_ArchivedUndoAction type exposes the following members.
Constructors
Name
Description
Protected method
GH_ArchivedUndoAction
Initializes a new instance of the GH_ArchivedUndoAction class
Properties
Name
Description
Public Property
ExpiresDisplay
Override this property if you want the Rhino viewport display to refresh upon undo completion.
(Inherited from GH_UndoAction.)
Public Property
ExpiresSolution
Override this property if you want the Grasshopper solution to refresh upon undo completion.
(Inherited from GH_UndoAction.)
Public Property
State
(Inherited from GH_UndoAction.)
Methods
Name
Description
Protected method
Deserialize
Deserializes the obj from the local archive.
Protected method
Internal_Redo
(Inherited from GH_UndoAction.)
Protected method
Internal_Undo
(Inherited from GH_UndoAction.)
Public Method
Read
(Overrides
GH_UndoAction.Read(GH_IReader)
.)Public Method
Redo
(Inherited from GH_UndoAction.)
Protected method
Serialize
Serializes the obj into the local archive.
Protected method
SerializeToByteArray
Serializes the obj into the local archive.
Public Method
Undo
(Inherited from GH_UndoAction.)
Public Method
Write
(Overrides
GH_UndoAction.Write(GH_IWriter)
.)Fields
Name
Description
Protected field
m_dataInternal data storage for serialized archives.