NormalizedSnapshotSpanCollection::CopyTo Method (array<SnapshotSpan>^, Int32)

 

Copies the collection to the specified array of snapshot spans at the specified location.

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

public:
virtual void CopyTo(
	array<SnapshotSpan>^ array,
	int arrayIndex
) sealed

Parameters

array
Type: array<Microsoft.VisualStudio.Text::SnapshotSpan>^

The array of snapshot spans.

arrayIndex
Type: System::Int32

The location to which to start copying the snapshot spans.

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

arrayIndex is negative or greater than the array length, or the number of spans in the collection is greater than the length of the array minus the array index.

Return to top
Show: