Spread Windows Forms 6.0 Product Documentation
CopyTo Method
See Also  Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpScrollBarButtonCollection Class : CopyTo Method


array
The one-dimensional System.Array that is the destination of the buttons copied from System.Collections.ICollection. The System.Array must have zero-based indexing
index
The zero-based index in array at which copying begins

Glossary Item Box

Copies the buttons of the System.Collections.ICollection to an System.Array, starting at a particular System.Array index.

Syntax

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

Parameters

array
The one-dimensional System.Array that is the destination of the buttons copied from System.Collections.ICollection. The System.Array must have zero-based indexing
index
The zero-based index in array at which copying begins

Exceptions

ExceptionDescription
System.ArgumentNullExceptionarray is null.
System.ArgumentOutOfRangeExceptionindex is less than zero.
System.ArgumentExceptionarray is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of buttons in the source System.Collections.ICollection is greater than the available space from index to the end of the destination array.
System.InvalidCastExceptionThe type of the source System.Collections.ICollection cannot be cast automatically to the type of the destination array.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.