Spread Windows Forms 11.0 Product Documentation
Clear Method (DefaultSheetAxisModel)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > DefaultSheetAxisModel Class : Clear Method
Index before which to clear the rows or columns
Number of rows or columns to clear
Removes the values from the specified rows or columns.
Syntax
'Declaration
 
Public Overridable Sub Clear( _
   ByVal index As Integer, _
   ByVal count As Integer _
) 
'Usage
 
Dim instance As DefaultSheetAxisModel
Dim index As Integer
Dim count As Integer
 
instance.Clear(index, count)
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.
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);
Dim dsam As New FarPoint.Win.Spread.Model.DefaultSheetAxisModel()
dsam = fpSpread1.ActiveSheet.Models.RowAxis
dsam.Clear(0, 2)
See Also

Reference

DefaultSheetAxisModel Class
DefaultSheetAxisModel Members