| Visual Basic (Declaration) | |
|---|---|
Public Sub CopyTo( _ ByVal array() As LegendArea, _ ByVal arrayIndex As Integer _ )  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim instance As LegendAreaCollection Dim array() As LegendArea Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex)  | |
| C# | |
|---|---|
public void CopyTo( LegendArea[] array, int arrayIndex )  | |
Parameters
- array
 - One-dimension array that is the destination of the legend areas copied from the collection.
 - arrayIndex
 - Zero-based index in array at which copying begins.
 
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8