GH_Document.GH_UndoUtil
ReferencesThis class is emitted by the Undo property of a GH_Document instance.
Methods
CreateAddObjectEvent
#Create a new undo record for a bunch of object additions.
Returns: A newly created undo record.
CreateAddObjectEvent
#Create a new undo record for a single object addition.
Returns: A newly created undo record.
CreateAddStateEvent
#Create a new undo record for a single solution state addition.
Returns: A newly created undo record.
CreateEnabledEvent
#Create a new undo record for an object enabled change. This function must be called before the enabled flag is changed.
Returns: A newly created undo record.
CreateGenericObjectEvent
#Create a new undo record for a generic, single object change.
Returns: A newly created undo record.
CreateLayoutEvent
#Create a new undo record for a bunch of object layout changes. This function must be called before the layouts are changed.
Returns: A newly created undo record.
CreateLayoutEvent
#Create a new undo record for a single object layout change. This function must be called before the layout is changed.
Returns: A newly created undo record.
CreateNickNameEvent
#Create a new undo record for an object nickname change. This function must be called before the nickname is changed.
Returns: A newly created undo record.
CreatePersistentDataEvent<T>
#Create a new undo record for a single object persistent data change.
Returns: A newly created undo record.
CreatePivotEvent
#Create a new undo record for a bunch of pivot changes. This function must be called before the pivots are changed.
Returns: A newly created undo record.
CreatePivotEvent
#Create a new undo record for a single pivot change. This function must be called before the pivot is changed.
Returns: A newly created undo record.
CreatePreviewEvent
#Create a new undo record for an object preview change. This function must be called before the preview is changed.
Returns: A newly created undo record.
CreateRemoveObjectEvent
#Create a new undo record for a bunch of object removals.
Returns: A newly created undo record.
CreateRemoveObjectEvent
#Create a new undo record for a single object removal.
Returns: A newly created undo record.
CreateRemoveStateEvent
#Create a new undo record for a single solution state removal.
Returns: A newly created undo record.
CreateReplaceStateEvent
#Create a new undo record for a single solution state addition.
public GH_UndoRecord CreateReplaceStateEvent()
name,
Name of undo record.
stateIndex,
Index of state.
oldState,
Solution state to remove.
newState
Solution state to insert.
Returns: A newly created undo record.
CreateWireEvent
#Create a new undo record for a set of Connector wire changes. This function must be called before the wires are changed.
Returns: A newly created undo record.
CreateWireEvent
#Create a new undo record for a set of Connector wire changes. This function must be called before the wires are changed.
Returns: A newly created undo record.
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.
Returns: True if merge was successful.
RecordAddObjectEvent
#Create and Record a new ObjectAdded undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordAddObjectEvent
#Create and Record a new ObjectAdded undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordAddStateEvent
#Create and Record a new CreateAddStateEvent undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordEnabledEvent
#Create and Record a new EnabledChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordEvent
#Add a new record to the undo stack of the owner document.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordEvent
#Add a new record to the undo stack of the owner document.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordEvent
#Add a new record to the undo stack of the owner document.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordEvent
#Add a new record to the undo stack of the owner document.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordGenericObjectEvent
#Create and Record a new ObjectChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordLayoutEvent
#Create and Record a new LayoutChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordLayoutEvent
#Create and Record a new LayoutChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordNickNameEvent
#Create and Record a new NickNameChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordPersistentDataEvent<T>
#Create and Record a new PersistentDataChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordPivotEvent
#Create and Record a new PivotChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordPivotEvent
#Create and Record a new PivotChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordPreviewEvent
#Create and Record a new PreviewChanged undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordRemoveObjectEvent
#Create and Record a new ObjectRemoved undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordRemoveObjectEvent
#Create and Record a new ObjectRemoved undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordRemoveStateEvent
#Create and Record a new CreateRemoveStateEvent undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.
RecordReplaceStateEvent
#Create and Record a new CreateReplaceStateEvent undo record.
Returns: The ID of the newly added undo record or Guid.Empty on failure.