Spread ASP.NET 6.0 Product Documentation
CopyTo Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultSkins Class : CopyTo Method


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

Glossary Item Box

Copies skins to the specified array at the specified index.

Syntax

Visual Basic (Declaration) 
Public Shared Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
Visual Basic (Usage)Copy Code
Dim array As Array
Dim index As Integer
 
DefaultSkins.CopyTo(array, index)
C# 
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
System.ArgumentNullExceptionNo array specified, or specified array is null (Nothing)
System.ArgumentExceptionSpecified array is invalid; must have a rank of one
System.ArgumentExceptionSpecified array is invalid; must have sufficient length
System.IndexOutOfRangeExceptionSpecified index is out of range; must be greater than zero

Example

This example copies the specified skin to an array at the specified index.
C#Copy Code
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));
Visual BasicCopy Code
Dim ds As New FarPoint.Web.Spread.DefaultSkins
Dim myarray(ds.Count)
ds.CopyTo(myarray, 0)
TextBox1.Text = Convert.ToString(myarray.GetValue(4))

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

© 2002-2012 GrapeCity, Inc. All Rights Reserved.