getBuildingBlock method

getBuildingBlock(index, isDeep)

Returns an Nth child BuildingBlock node.

getBuildingBlock(index: number, isDeep: boolean)
ParameterTypeDescription
indexnumberZero based index of the child BuildingBlock node to select. Negative indexes are also allowed and indicate access from the end, that is -1 means the last node.
isDeepbooleantrue to select from all child nodes recursively; false to select only among immediate children.

Remarks

If index is out of range, a null is returned.

Returns

The child BuildingBlock node or null if no matching node is found.

See Also