ITextImage.CopyTo(Int32, Char[], Int32, Int32) Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies a range of text to a character array.
public:
 void CopyTo(int sourceIndex, cli::array <char> ^ destination, int destinationIndex, int count);
	public void CopyTo(int sourceIndex, char[] destination, int destinationIndex, int count);
	abstract member CopyTo : int * char[] * int * int -> unit
	Public Sub CopyTo (sourceIndex As Integer, destination As Char(), destinationIndex As Integer, count As Integer)
	Parameters
- sourceIndex
 - Int32
 
The starting index in the text image.
- 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 image, or
count is less than zero, or sourceIndex + count is greater than the length of the image, or
destinationIndex is less than zero, or destinationIndex plus count is greater than the length of destination.
destination is null.