GH_Document.GH_UndoUtil.CreateRemoveObjectEvent Method (String, IEnumerable(IGH_DocumentObject))

GH_DocumentGH_UndoUtilCreateRemoveObjectEvent Method (String, IEnumerableIGH_DocumentObject)

Create a new undo record for a bunch of object removals.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public GH_UndoRecord CreateRemoveObjectEvent(
	string name,
	IEnumerable<IGH_DocumentObject> objs
)
Public Function CreateRemoveObjectEvent ( 
	name As String,
	objs As IEnumerable(Of IGH_DocumentObject)
) As GH_UndoRecord

Parameters

name
Type: SystemString
Name of undo record.
objs
Type: System.Collections.GenericIEnumerableIGH_DocumentObject
Objects to be removed.

Return Value

Type: GH_UndoRecord
A newly created undo record.
See Also