ITextSnapshot::CopyTo Method (Int32, array<Char>^, Int32, Int32)
Visual Studio 2015
Copies a range of text to a character array.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
void CopyTo( int sourceIndex, array<wchar_t>^ destination, int destinationIndex, int count )
Parameters
- sourceIndex
-
Type:
System::Int32
The starting index in the text snapshot.
- destination
-
Type:
array<System::Char>^
The destination array.
- destinationIndex
-
Type:
System::Int32
The index in the destination array at which to start copying the text.
- count
-
Type:
System::Int32
The number of characters to copy.
| Exception | Condition |
|---|---|
| ArgumentNullException | destination is null. |
| ArgumentOutOfRangeException | sourceIndex is less than zero or greater than the length of the snapshot, or count is less than zero, or sourceIndex plus 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. |
Show: