Spread Windows Forms 7.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 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.