Spread Windows Forms 11.0 Product Documentation
CopyRows Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetSpanModel Class : CopyRows Method
Row index at which to start copying
Row index at which to paste columns
Number of rows to copy
Copies rows and pastes them at the specified location.
Syntax
'Declaration
 
Public Sub CopyRows( _
   ByVal fromRow As Integer, _
   ByVal toRow As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As DefaultSheetSpanModel
Dim fromRow As Integer
Dim toRow As Integer
Dim count As Integer
 
instance.CopyRows(fromRow, toRow, count)
public void CopyRows( 
   int fromRow,
   int toRow,
   int count
)

Parameters

fromRow
Row index at which to start copying
toRow
Row index at which to paste columns
count
Number of rows to copy
Example
This example copies the rows to the specified location.
FarPoint.Win.Spread.Model.DefaultSheetSpanModel defspanModel = new FarPoint.Win.Spread.Model.DefaultSheetSpanModel();
fpSpread1.ActiveSheet.Models.Span = defspanModel;
defspanModel.Add(0, 0, 3, 3);
defspanModel.CopyRows(0, 4, 3);
Dim defspanModel As New FarPoint.Win.Spread.Model.DefaultSheetSpanModel()
FpSpread1.ActiveSheet.Models.Span = defspanModel
defspanModel.Add(0, 0, 3, 3)
defspanModel.CopyRows(0, 4, 3)
See Also

Reference

DefaultSheetSpanModel Class
DefaultSheetSpanModel Members