Spread ASP.NET 6.0 Product Documentation
ClearRange Method
See Also  Example Send Feedback
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.