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


Glossary Item Box

Adds a new row or range of rows before this row or range of rows.

Syntax

Visual Basic (Declaration) 
Public Sub Add() 
Visual Basic (Usage)Copy Code
Dim instance As Row
 
instance.Add()
C# 
public void Add()

Example

This example adds a row to the sheet.
C#Copy Code
FarPoint.Win.Spread.Row r;
r = fpSpread1.ActiveSheet.Rows[0];
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount.ToString());
r.Add();
listBox1.Items.Add(fpSpread1.ActiveSheet.RowCount.ToString());
Visual BasicCopy Code
Dim r As FarPoint.Win.Spread.Row
r = FpSpread1.ActiveSheet.Rows(0)
ListBox1.Items.Add(FpSpread1.ActiveSheet.RowCount.ToString())
r.Add()
ListBox1.Items.Add(FpSpread1.ActiveSheet.RowCount.ToString())

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.