Click or drag to resize

GH_GenericObjectAction Class

Records a single object change. Object changes are undone/redone by (de)serializing the objects. Object changes also keep track of all wires feeding into and coming out of the object.
Inheritance Hierarchy

Namespace:  Grasshopper.Kernel.Undo.Actions
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public class GH_GenericObjectAction : GH_ArchivedUndoAction

The GH_GenericObjectAction type exposes the following members.

Constructors
  NameDescription
Public methodGH_GenericObjectAction
Initializes a new instance of the GH_GenericObjectAction class
Top
Properties
  NameDescription
Public propertyExpiresDisplay
Override this property if you want the Rhino viewport display to refresh upon undo completion.
(Inherited from GH_UndoAction.)
Public propertyExpiresSolution (Overrides GH_UndoActionExpiresSolution.)
Public propertyState (Inherited from GH_UndoAction.)
Top
Methods
  NameDescription
Protected methodDeserialize
Deserializes the obj from the local archive.
(Inherited from GH_ArchivedUndoAction.)
Protected methodInternal_Redo (Overrides GH_UndoActionInternal_Redo(GH_Document).)
Protected methodInternal_Undo (Overrides GH_UndoActionInternal_Undo(GH_Document).)
Public methodRead (Inherited from GH_ArchivedUndoAction.)
Public methodRedo (Inherited from GH_UndoAction.)
Protected methodSerialize
Serializes the obj into the local archive.
(Inherited from GH_ArchivedUndoAction.)
Protected methodSerializeToByteArray
Serializes the obj into the local archive.
(Inherited from GH_ArchivedUndoAction.)
Public methodUndo (Inherited from GH_UndoAction.)
Public methodWrite (Inherited from GH_ArchivedUndoAction.)
Top
Fields
  NameDescription
Protected fieldm_data
Internal data storage for serialized archives.
(Inherited from GH_ArchivedUndoAction.)
Top
See Also