Grasshopper API
GH_DocumentGH_UndoUtilCreateLayoutEvent Method (String, IGH_DocumentObject) |
Create a new undo record for a single object layout change.
This function must be called before the layout is changed.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

public GH_UndoRecord CreateLayoutEvent( string name, IGH_DocumentObject obj )
Public Function CreateLayoutEvent ( name As String, obj As IGH_DocumentObject ) As GH_UndoRecord
Parameters
- name
- Type: SystemString
Name of undo record. - obj
- Type: Grasshopper.KernelIGH_DocumentObject
Target object for undo record.
Return Value
Type: GH_UndoRecordA newly created undo record.
