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


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

Parameters

row
The start index.
column
The start column.
rowCount
The number or rows to clear.
columnCount
The number of columns to clear.
area
The area to clear.
type
The clear type.
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.Xaml.SpreadSheet.Data.SheetArea.Cells);
gcSpreadSheet1.Sheets[0].Clear(5, 0, 2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, GrapeCity.Xaml.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.Xaml.SpreadSheet.Data.SheetArea.Cells)
GcSpreadSheet1.Sheets(0).Clear(5, 0, 2, 2, GrapeCity.Xaml.SpreadSheet.Data.SheetArea.Cells, GrapeCity.Xaml.SpreadSheet.Data.StorageType.Data)
See Also

Reference

Worksheet Class
Worksheet Members
Overload List