GH_Document.GH_UndoUtil.CreatePreviewEvent Method

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)
Syntax
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_UndoRecord
A newly created undo record.
See Also