Click or drag to resize

GH_DocumentServerIndexOf Method (GH_Document)

Gets the index of the given document.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public int IndexOf(
	GH_Document doc
)

Parameters

doc
Type: Grasshopper.KernelGH_Document
Document to search for.

Return Value

Type: Int32
The index of the given document or -1 if the document is not in the global list.
See Also