Spread Windows Forms 6.0 Product Documentation
Clear Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetAxisModel Class : Clear Method


index
Index before which to clear the rows or columns
count
Number of rows or columns to clear

Glossary Item Box

Removes the values from the specified rows or columns.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub Clear( _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DefaultSheetAxisModel
Dim index As Integer
Dim count As Integer
 
instance.Clear(index, count)
C# 
public virtual void Clear( 
   int index,
   int count
)

Parameters

index
Index before which to clear the rows or columns
count
Number of rows or columns to clear

Example

This example removes the values from the specified rows.
C#Copy Code
FarPoint.Win.Spread.Model.DefaultSheetAxisModel dsam = new FarPoint.Win.Spread.Model.DefaultSheetAxisModel();
dsam = (FarPoint.Win.Spread.Model.DefaultSheetAxisModel)fpSpread1.ActiveSheet.Models.RowAxis;
dsam.Clear(0, 2);
Visual BasicCopy Code
Dim dsam As New FarPoint.Win.Spread.Model.DefaultSheetAxisModel()
dsam = FpSpread1.ActiveSheet.Models.RowAxis
dsam.Clear(0, 2)

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

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