Spread for ASP.NET 7.0 Product Documentation
CopyTo Method
See Also  Example Support Options
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 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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