FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetViewCollection Class : CopyTo Method |
'Declaration Public Sub CopyTo( _ ByVal array() As SheetView, _ ByVal arrayIndex As Integer _ )
'Usage Dim instance As SheetViewCollection Dim array() As SheetView Dim arrayIndex As Integer instance.CopyTo(array, arrayIndex)
public void CopyTo( SheetView[] array, int arrayIndex )
FarPoint.Web.Spread.SheetView[] myarray = New FarPoint.Web.Spread.SheetView[2]; FarPoint.Web.Spread.SheetView sv1 = New FarPoint.Web.Spread.SheetView(); FarPoint.Web.Spread.SheetView sv2 = New FarPoint.Web.Spread.SheetView(); sv1.GridLineColor = Color.Red; sv1.GridLines = GridLines.Vertical; sv2.GridLineColor = Color.Yellow; sv2.GridLines = GridLines.Horizontal; FpSpread1.Sheets.Add(sv1); FpSpread1.Sheets.Add(sv2); FpSpread1.Sheets.CopyTo(myarray, 0);
Dim myarray(2) As FarPoint.Web.Spread.SheetView Dim sv1 As New FarPoint.Web.Spread.SheetView() Dim sv2 As New FarPoint.Web.Spread.SheetView() sv1.GridLineColor = Color.Red sv1.GridLines = GridLines.Vertical sv2.GridLineColor = Color.Yellow sv2.GridLines = GridLines.Horizontal FpSpread1.Sheets.Add(sv1) FpSpread1.Sheets.Add(sv2) FpSpread1.Sheets.CopyTo(myarray, 0)
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional