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