MaterialRefs.CopyTo Method

MaterialRefsCopyTo Method

Copies the elements of this dictionary to an System.Array, starting at a particular System.Array index.

Namespace:  Rhino.DocObjects
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public void CopyTo(
	KeyValuePair<Guid, MaterialRef>[] array,
	int arrayIndex
)
Public Sub CopyTo ( 
	array As KeyValuePair(Of Guid, MaterialRef)(),
	arrayIndex As Integer
)

Parameters

array
Type: System.Collections.GenericKeyValuePairGuid, MaterialRef
The one-dimensional System.Array that is the destination of the elements copied from this dictionary. The System.Array must have zero-based indexing.
arrayIndex
Type: SystemInt32
The zero-based index in array at which copying begins.

Implements

ICollectionTCopyTo(T, Int32)
Exceptions
ExceptionCondition
ArgumentNullException array is null
ArgumentOutOfRangeException arrayIndex is less than 0.
ArgumentOutOfRangeException The number of elements in the source dictionary is greater than the available space from arrayIndex to the end of the destination array.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.14
See Also