Spread Silverlight Documentation
Clear(Int32,Int32,Int32,Int32) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class > Clear Method : Clear(Int32,Int32,Int32,Int32) Method
The start index.
The start column.
The number of rows to clear.
The number of columns to clear.
Clears the specified area.
Syntax
'Declaration
 
Public Overloads Sub Clear( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal columnCount As System.Integer _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim rowCount As System.Integer
Dim columnCount As System.Integer
 
instance.Clear(row, column, rowCount, columnCount)
public void Clear( 
   System.int row,
   System.int column,
   System.int rowCount,
   System.int columnCount
)

Parameters

row
The start index.
column
The start column.
rowCount
The number of rows to clear.
columnCount
The number of columns to clear.
Example
This example uses the Clear method.
gcSpreadSheet1.Sheets[0].Cells[0, 0, 10, 10].Text = "Test";
gcSpreadSheet1.Sheets[0].Clear(0, 0, 2, 2);
gcSpreadSheet1.Sheets[0].Clear(2, 3, 1, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells);
gcSpreadSheet1.Sheets[0].Clear(5, 0, 2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, GrapeCity.Windows.SpreadSheet.Data.StorageType.Data);
GcSpreadSheet1.Sheets(0).Cells(0, 0, 10, 10).Text = "Test"
GcSpreadSheet1.Sheets(0).Clear(0, 0, 2, 2)
GcSpreadSheet1.Sheets(0).Clear(2, 3, 1, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells)
GcSpreadSheet1.Sheets(0).Clear(5, 0, 2, 2, GrapeCity.Windows.SpreadSheet.Data.SheetArea.Cells, GrapeCity.Windows.SpreadSheet.Data.StorageType.Data)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List