Properties

ExpiresDisplay

#
bool ExpiresDisplay { get; }
Gets the display expiration flag for this event. If True, the Rhino viewports will be redrawn once the entire undo record has been completed. If ExpiresSolution is set to true, ExpriresDisplay is implied.

ExpiresSolution

#
bool ExpiresSolution { get; }
Gets the solution expiration flag for this event. If True, the solution needs to be recalculated once the entire undo record has been completed.

State

#
GH_UndoState State { get; }
Gets the current state of the undo action.

Methods

Read

bool Read(GH_IReader reader)
This method is called whenever the instance is required to deserialize itself.
inherited fromGH_ISerializable
reader (GH_IReader)Reader object to deserialize from.
True on success, false on failure.

Redo

#
void Redo(GH_Document doc)
Redo the action stored in this record.
doc (GH_Document)The target document.
GH_UndoExceptionThrown when the State flag conflicts with a redo action.

Undo

#
void Undo(GH_Document doc)
Undo the action stored in this record.
doc (GH_Document)The target document.
GH_UndoExceptionThrown when the State flag conflicts with an undo action.

Write

bool Write(GH_IWriter writer)
This method is called whenever the instance is required to serialize itself.
inherited fromGH_ISerializable
writer (GH_IWriter)Writer object to serialize with.
True on success, false on failure.