Spread ASP.NET 6.0 Product Documentation
Add Method
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.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.Web.Spread.Column col;
fpSpread1.ActiveSheetView.ColumnCount = 1;
col = fpSpread1.ActiveSheetView.Columns[0];
col.Add();
fpSpread1.ActiveSheetView.Cells[0, 0].Text = "--Added";
Visual BasicCopy Code
Dim col As FarPoint.Web.Spread.Column
FpSpread1.ActiveSheetView.ColumnCount = 1
col = FpSpread1.ActiveSheetView.Columns(0)
col.Add()
FpSpread1.ActiveSheetView.Cells(0, 0).Text = "--Added"

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.