Constructors
Properties
MaxRecords
#Gets or sets the maximum number of undo records that can be stored.
Remarks: The number of redo records is logically limited to the same number. THIS SETTING IS CURRENTLY IGNORED
RedoGuids
#Gets a sorted list of all the redo Guids in this server.
RedoNames
#Gets a sorted list of all the redo Guids in this server.
UndoGuids
#Gets a sorted list of all the undo Guids in this server.
Methods
AppendToDebugLog
#[EditorBrowsable(EditorBrowsableState.Advanced)]
public void AppendToDebugLog(GH_DebugDescriptionWriter writer)
Parameters:
| writer (GH_DebugDescriptionWriter) |
Implements: AppendToDebugLog
MergeRecords
#Attempt to merge the N most recent records into one. The name of the merged record will be identical to the name of the oldest record.
Parameters:
| count (int) | Number of most recent records to merge. |
Returns: True if merge was successful.
PerformRedo
#public void PerformRedo()
Performs a single Redo step if possible and migrates the record onto the undo stack. This function may throw all kinds of exceptions, if you're calling it from a UI thread, use a Try..Catch block to prevent crashes.
PerformUndo
#public void PerformUndo()
Performs a single Undo step when possible and migrates the record onto the redo stack. This function may throw all kinds of exceptions, if you're calling it from a UI thread, use a Try..Catch block to prevent crashes.
PushUndoRecord
#Add a new undo record to the undo stack, this function clears the Redo stack.
Parameters:
| name (string) | Name of undo record. |
| action (GH_UndoAction) | Undo action. |
Returns: The ID of the newly created undo record.
PushUndoRecord
#Add a new undo record to the undo stack, this function clears the Redo stack.
Parameters:
| record (GH_UndoRecord) | Record to add. |