Properties

ExpiresDisplay

#
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.
bool ExpiresDisplay { get; }

ExpiresSolution

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

State

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

Methods

Read

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

Redo

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

Undo

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

Write

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