Grasshopper API
GH_DocumentGH_UndoUtilCreatePreviewEvent Method |
Create a new undo record for an object preview change.
This function must be called before the preview is changed.
Namespace: Grasshopper.Kernel
Assembly: Grasshopper (in Grasshopper.dll)

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