Spread for ASP.NET 8.0 Product Documentation
CopyTo(Array,Int32) Method
Example 


One-dimensional array into which the elements from ICollection are copied; the array indexing must be zero-based.
Zero-based index in the array at which to paste the styles
Copies the styles in the collection to a specified array.
Syntax
'Declaration
 
Public Overloads Sub CopyTo( _
   ByVal array As Array, _
   ByVal index As Integer _
) 
'Usage
 
Dim instance As DefaultStyleCollection
Dim array As Array
Dim index As Integer
 
instance.CopyTo(array, index)
public void CopyTo( 
   Array array,
   int index
)

Parameters

array
One-dimensional array into which the elements from ICollection are copied; the array indexing must be zero-based.
index
Zero-based index in the array at which to paste the styles
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
FarPoint.Web.Spread.DefaultStyleCollection dsc = new FarPoint.Web.Spread.DefaultStyleCollection();
Object[] myarray = new Object[dsc.Count];
dsc.CopyTo(myarray, 0);
TextBox1.Text = myarray.GetValue(1).ToString();
Dim dsc As New FarPoint.Web.Spread.DefaultStyleCollection
Dim myarray(dsc.Count)
dsc.CopyTo(myarray, 0)
TextBox1.Text = myarray.GetValue(1).ToString()
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

Reference

DefaultStyleCollection Class
DefaultStyleCollection Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.