다음을 통해 공유


NormalizedSnapshotSpanCollection.CopyTo Method

Definition

Overloads

CopyTo(Array, Int32)

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

CopyTo(SnapshotSpan[], Int32)

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

CopyTo(Array, Int32)

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

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

Parameters

array
Array

The array.

index
Int32

The location at which to start copying.

Implements

Exceptions

array is null.

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.

array is not one-dimensional.

Applies to

CopyTo(SnapshotSpan[], Int32)

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

public:
 virtual void CopyTo(cli::array <Microsoft::VisualStudio::Text::SnapshotSpan> ^ array, int arrayIndex);
void CopyTo(std::Array <Microsoft::VisualStudio::Text::SnapshotSpan> const & array, int arrayIndex);
public void CopyTo (Microsoft.VisualStudio.Text.SnapshotSpan[] array, int arrayIndex);
abstract member CopyTo : Microsoft.VisualStudio.Text.SnapshotSpan[] * int -> unit
override this.CopyTo : Microsoft.VisualStudio.Text.SnapshotSpan[] * int -> unit
Public Sub CopyTo (array As SnapshotSpan(), arrayIndex As Integer)

Parameters

array
SnapshotSpan[]

The array of snapshot spans.

arrayIndex
Int32

The location to which to copy the snapshot spans.

Implements

Exceptions

array is null.

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.

Applies to