Click or drag to resize

DataTreeTItem Property

Gets or set the data item at the specified path and index.

Namespace:  Grasshopper
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public T this[
	GH_Path path,
	int index
] { get; set; }

Parameters

path
Type: Grasshopper.Kernel.DataGH_Path
Path of the data branch to retrieve. Path must be defined in the tree.
index
Type: SystemInt32
Index of item to retrieve. Index must be defined in the branch.

Property Value

Type: T

[Missing <value> documentation for "P:Grasshopper.DataTree`1.Item(Grasshopper.Kernel.Data.GH_Path,System.Int32)"]

Exceptions
ExceptionCondition
NullReferenceExceptionThrown if the path doesn't exist.
IndexOutOfRangeExceptionThrown if the index does not exist within the path list.
See Also