GH_Document.GH_UndoUtil.CreateRemoveObjectEvent Method (String, IGH_DocumentObject)

GH_DocumentGH_UndoUtilCreateRemoveObjectEvent Method (String, IGH_DocumentObject)

Create a new undo record for a single object removal.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public GH_UndoRecord CreateRemoveObjectEvent(
	string name,
	IGH_DocumentObject obj
)
Public Function CreateRemoveObjectEvent ( 
	name As String,
	obj As IGH_DocumentObject
) As GH_UndoRecord

Parameters

name
Type: SystemString
Name of undo record.
obj
Type: Grasshopper.KernelIGH_DocumentObject
Object to be removed.

Return Value

Type: GH_UndoRecord
A newly created undo record.
See Also