Click or drag to resize

GH_DocumentRemoveObjects Method

Remove the specified objects from the document. This removal is the precursor to object deletion. Do not call this function if you intend to transfer the objects to another GH_Document. This method does not add an Undo event, that is the responsibility of the caller.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
public int RemoveObjects(
	IEnumerable<IGH_DocumentObject> objectList,
	bool update


Type: System.Collections.GenericIEnumerableIGH_DocumentObject
Objects to remove from this document.
Type: SystemBoolean
If True, the solution will be recomputed.

Return Value

Type: Int32
The number of objects actually deleted.
See Also