| Visual Basic (Declaration) | |
|---|---|
Public Shared Sub CopyTo( _ ByVal array As Array, _ ByVal index As Integer _ )  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim array As Array Dim index As Integer DefaultSpreadSkins.CopyTo(array, index)  | |
Parameters
- array
 - One-dimensional array into which the elements from ICollection are copied; array must have zero-based indexing
 - index
 - Zero-based index in array at which to paste skins
 
| Exception | Description | 
|---|---|
| System.ArgumentNullException | No array specified, or specified array is null (Nothing) | 
| System.ArgumentException | Specified array is invalid; must have a rank of one | 
| System.ArgumentException | Specified array is invalid; must have sufficient length | 
| System.IndexOutOfRangeException | Specified index is out of range; must be greater than zero | 
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8