Grasshopper API
GH_DocumentGH_UndoUtilRecordEvent Method (String, IEnumerableIGH_UndoAction) |
Add a new record to the undo stack of the owner document.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public Guid RecordEvent( string name, IEnumerable<IGH_UndoAction> actions )
Public Function RecordEvent ( name As String, actions As IEnumerable(Of IGH_UndoAction) ) As Guid
Parameters
- name
- Type: SystemString
Name of undo record. - actions
- Type: System.Collections.GenericIEnumerableIGH_UndoAction
Undo actions.
Return Value
Type: GuidThe ID of the newly added undo record or Guid.Empty on failure.
