Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / SideButtonCollection Class / CopyTo Method
The one-dimensional System.Array that is the destination of the values copied from the collection.
The index of the array at which to begin inserting.


In This Topic
    CopyTo Method (SideButtonCollection)
    In This Topic
    Copies the collection objects to a one-dimensional System.Array instance that begins at the specified index.
    Syntax
    'Declaration
     
    
    Public Sub CopyTo( _
       ByVal array() As SideButtonBase, _
       ByVal index As Integer _
    ) 
    'Usage
     
    
    Dim instance As SideButtonCollection
    Dim array() As SideButtonBase
    Dim index As Integer
     
    instance.CopyTo(array, index)
    public void CopyTo( 
       SideButtonBase[] array,
       int index
    )

    Parameters

    array
    The one-dimensional System.Array that is the destination of the values copied from the collection.
    index
    The index of the array at which to begin inserting.
    Exceptions
    ExceptionDescription
    The array parameter is null.
    The index parameter is less than the target array's minimum index.
    The destination array is multidimensional.-or- The number of elements in the SideButtonCollection is greater than the available space between the index of the target array specified by the index parameter and the end of the target array.
    See Also