NormalizedSnapshotSpanCollection::CopyTo Method (Array^, Int32)

 

Copies the snapshot spans in this collection to the specified array, starting at the specified index.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

public:
virtual void CopyTo(
	Array^ array,
	int index
) sealed

Parameters

array
Type: System::Array^

The array.

index
Type: System::Int32

The location at which to start copying.

Exception Condition
ArgumentNullException

array is null.

ArgumentException

array is not one-dimensional.

ArgumentOutOfRangeException

index is negative, or greater than the length of the array, or the number of spans is greater than the length of the array less the index.

Return to top
Show: