ITextSnapshot.CopyTo(Int32, Char[], Int32, Int32) Method

Definition

Copies a range of text to a character array.

C++/CX
public:
 void CopyTo(int sourceIndex, Platform::Array <char16> ^ destination, int destinationIndex, int count);

Parameters

sourceIndex
Int32

The starting index in the text snapshot.

destination
Char[]

The destination array.

destinationIndex
Int32

The index in the destination array at which to start copying the text.

count
Int32

The number of characters to copy.

Exceptions

sourceIndex is less than zero or greater than the length of the snapshot, or count is less than zero, or sourceIndex + count is greater than the length of the snapshot, or destinationIndex is less than zero, or destinationIndex plus count is greater than the length of destination.

destination is null.

Applies to

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022