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


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
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.
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))
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

DefaultSkins Class
DefaultSkins Members

 

 


Copyright © GrapeCity, inc. All rights reserved.