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


Glossary Item Box

Adds a new column or range of columns before this column or range of columns.

Syntax

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

Example

This example adds a column to the sheet.
C#Copy Code
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.ColumnCount = 1;
col = fpSpread1.ActiveSheet.Columns[0];
col.Add();
fpSpread1.ActiveSheet.Cells[0, 0].Text = "<-Added";
Visual BasicCopy Code
Dim col As FarPoint.Win.Spread.Column
FpSpread1.ColumnCount = 1
col = FpSpread1.ActiveSheet.Columns(0)
col.Add()
FpSpread1.ActiveSheet.Cells(0, 0).Text = "<-Added"

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.