Spread Windows Forms 7.0 Product Documentation
RemoveRows Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > IRangeSupport Interface : RemoveRows Method


row
Row index at which to start removing rows
rowCount
Number of rows to remove

Glossary Item Box

Removes rows from the specified starting position.

Syntax

Visual Basic (Declaration) 
Sub RemoveRows( _
   ByVal row As Integer, _
   ByVal rowCount As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As IRangeSupport
Dim row As Integer
Dim rowCount As Integer
 
instance.RemoveRows(row, rowCount)
C# 
void RemoveRows( 
   int row,
   int rowCount
)

Parameters

row
Row index at which to start removing rows
rowCount
Number of rows to remove

Example

This example removes the specified number of columns and rows.
C#Copy Code
FarPoint.Win.Spread.Model.IRangeSupport irs;
DialogResult dlg;
irs = (FarPoint.Win.Spread.Model.IRangeSupport)fpSpread1.ActiveSheet.Models.Data;
dlg = MessageBox.Show("Do you want to remove some columns and rows?", "RemoveColumns/Rows", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
irs.RemoveColumns(3, 496);
irs.RemoveRows(3, 496);
}
Visual BasicCopy Code
Dim irs As FarPoint.Win.Spread.Model.IRangeSupport
Dim dlg As DialogResult
irs = FpSpread1.ActiveSheet.Models.Data
dlg = MessageBox.Show("Do you want to remove some columns and rows?", "RemoveColumns/Rows", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
irs.RemoveColumns(3, 496)
irs.RemoveRows(3, 496)
End If

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.