Spread for ASP.NET 7.0 Product Documentation
ClearRange Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class : ClearRange Method


row
Row index of first cell in range
column
Column index of first cell in range
rowCount
Number of rows in range
columnCount
Number of columns in range
dataOnly
Whether to remove only data

Glossary Item Box

Removes all of the data, formatting, formulas, and notes from a range of cells on this sheet.

Syntax

Visual Basic (Declaration) 
Public Sub ClearRange( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal rowCount As Integer, _
   ByVal columnCount As Integer, _
   ByVal dataOnly As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim rowCount As Integer
Dim columnCount As Integer
Dim dataOnly As Boolean
 
instance.ClearRange(row, column, rowCount, columnCount, dataOnly)
C# 
public void ClearRange( 
   int row,
   int column,
   int rowCount,
   int columnCount,
   bool dataOnly
)

Parameters

row
Row index of first cell in range
column
Column index of first cell in range
rowCount
Number of rows in range
columnCount
Number of columns in range
dataOnly
Whether to remove only data

Remarks

If you set the dataOnly parameter to true, the method clears the formulas, the cell notes, and the text in the cells in that range; in other words, it clears all the information that is in the data model for those cells.

Example

This example uses the ClearRange method.
C#Copy Code
FpSpread1.Sheets[0].ClearRange(0, 0, 2, 2, false);
Visual BasicCopy Code
FpSpread1.Sheets(0).ClearRange(0, 0, 2, 2, False)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.