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


Glossary Item Box

Removes this column (or a range of columns if called repeatedly).

Syntax

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

Remarks

To remove a range of columns, you can use the Rows shortcut to call this method repeatedly for a range of rows, or use the Remove method from the Columns class and specify a range of columns.

Example

This example removes the first column from the active sheet.
C#Copy Code
FarPoint.Win.Spread.Column col;
fpSpread1.ActiveSheet.ColumnCount = 3;
col = fpSpread1.ActiveSheet.Columns[0];
col.Remove();
Visual BasicCopy Code
Dim col As FarPoint.Win.Spread.Column
FpSpread1.ActiveSheet.ColumnCount = 3
col = FpSpread1.ActiveSheet.Columns(0)
col.Remove()

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.