RhinoCommon API
RenderPrimitiveListTryGetBox Method |
Call this method to get a box at the specified index.
Namespace: Rhino.Render
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool TryGetBox( int index, out Box box )
Public Function TryGetBox ( index As Integer, <OutAttribute> ByRef box As Box ) As Boolean
Parameters
- index
- Type: SystemInt32
The zero based index of the item in the list. Valid values are greater than or equal to 0 and less than Count. - box
- Type: Rhino.GeometryBox
Will contain the box at the requested index if the index is in range and the primitive at the requested index is a box.
Return Value
Type: BooleanReturn true if the index is in range and the primitive at the requested index is a box otherwise returns false.

Rhino for Windows
Supported in: 6.8