FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > DefaultStyleCollection Class > CopyTo Method : CopyTo(Array,Int32) Method |
'Usage Dim instance As DefaultStyleCollection Dim array As Array Dim index As Integer instance.CopyTo(array, index)
Exception | Description |
---|---|
System.ArgumentNullException | No array specified, or specified array is null (Nothing) |
System.ArgumentException | Specified array is invalid; must have a rank of one |
System.ArgumentException | Specified array is invalid; must have sufficient length |
System.IndexOutOfRangeException | Specified index is out of range; must be greater than zero |
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()
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional