GrapeCity.Xaml.SpreadSheet.Data
RemoveRows(Int32,Int32,SheetArea) Method
Example 


GrapeCity.Xaml.SpreadSheet.Data Namespace > Worksheet Class > RemoveRows Method : RemoveRows(Int32,Int32,SheetArea) Method
The index of the first row to remove.
The number of rows to remove.
The sheet area in which to remove rows.
Removes the row or rows on this sheet at the specified index in the specified sheet area.
Syntax
'Declaration
 
Public Overloads Sub RemoveRows( _
   ByVal row As Integer, _
   ByVal count As Integer, _
   ByVal sheetArea As SheetArea _
) 
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim count As Integer
Dim sheetArea As SheetArea
 
instance.RemoveRows(row, count, sheetArea)
public void RemoveRows( 
   int row,
   int count,
   SheetArea sheetArea
)

Parameters

row
The index of the first row to remove.
count
The number of rows to remove.
sheetArea
The sheet area in which to remove rows.
Example
This example uses the RemoveRows method.
gcSpreadSheet1.Sheets[0].RemoveRows(0, 2);
gcSpreadSheet1.Sheets[0].RemoveRows(0, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells);
GcSpreadSheet1.Sheets(0).RemoveRows(0, 2)
GcSpreadSheet1.Sheets(0).RemoveRows(0, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List