Spread Windows Forms 7.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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

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