GH_Document.GH_UndoUtil.RecordEvent Method (String, IEnumerable(IGH_UndoAction))

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)
Syntax
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: Guid
The ID of the newly added undo record or Guid.Empty on failure.
See Also