Dundas Chart for Windows Forms
CopyTo Method
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > LegendItemsCollection Class : CopyTo Method


array

A one-dimensional array that is the destination of the copied elements (must use zero-based indexing).


Destination collection.
index

The zero-based index at which copying of items begins.


The index in collection at which copying begins.

This method is used by all Chart collections to copy all items in the collection to an array, starting at a particular array index.


Copies all the elements of the current collection to the specified one-dimensional collection starting at the specified destination index.

Syntax

Visual Basic (Declaration)  
Public Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
Visual Basic (Usage) Copy Code
Dim instance As LegendItemsCollection
Dim array As Array
Dim index As Integer
 
instance.CopyTo(array, index)
C#  
public void CopyTo( 
   Array array,
   int index
)

Parameters

array

A one-dimensional array that is the destination of the copied elements (must use zero-based indexing).


Destination collection.
index

The zero-based index at which copying of items begins.


The index in collection at which copying begins.

Remarks

  Use this method to copy the contents of a collection to an array (0-based).

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.