Spread for ASP.NET 11 Product Documentation
CopyTo Method (DefaultSkins)
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultSkins Class : CopyTo Method
A one-dimensional array into which the elements from ICollection are copied
The array must have zero-based indexing.
Zero-based index in array at which to paste skins
Copies skins to the specified array at the specified index.
Syntax
'Declaration
 
Public Shared Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
'Usage
 
Dim array As Array
Dim index As Integer
 
DefaultSkins.CopyTo(array, index)
public static void CopyTo( 
   Array array,
   int index
)

Parameters

array
A one-dimensional array into which the elements from ICollection are copied
The array must have zero-based indexing.
index
Zero-based index in array at which to paste skins
Exceptions
ExceptionDescription
No array specified, or specified array is null (Nothing)
Specified array is invalid; must have a rank of one
Specified array is invalid; must have sufficient length
Specified index is out of range; must be greater than zero
Example
This example copies the specified skin to an array at the specified index.
FarPoint.Web.Spread.DefaultSkins ds = new FarPoint.Web.Spread.DefaultSkins();
Object[] myarray = new Object[FarPoint.Web.Spread.DefaultSkins.Count];
ds.CopyTo(myarray, 0);
TextBox1.Text = Convert.ToString(myarray.GetValue(4));
Dim ds As New FarPoint.Web.Spread.DefaultSkins
Dim myarray(ds.Count)
ds.CopyTo(myarray, 0)
TextBox1.Text = Convert.ToString(myarray.GetValue(4))
See Also

Reference

DefaultSkins Class
DefaultSkins Members