Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / Column Class / Add Method
Example


In This Topic
    Add Method (Column)
    In This Topic
    Adds a new column or range of columns before this column or range of columns.
    Syntax
    'Declaration
     
    Public Sub Add() 
    'Usage
     
    Dim instance As Column
     
    instance.Add()
    public void Add()
    Example
    This example adds a column to the sheet.
    FarPoint.Win.Spread.Column col;
    fpSpread1.ActiveSheet.ColumnCount = 1;
    col = fpSpread1.ActiveSheet.Columns[0];
    col.Add();
    fpSpread1.ActiveSheet.Cells[0, 0].Text = "<-Added";
    Dim col As FarPoint.Win.Spread.Column
    fpSpread1.ColumnCount = 1
    col = FpSpread1.ActiveSheet.Columns(0)
    col.Add()
    fpSpread1.ActiveSheet.Cells(0, 0).Text = "<-Added"
    See Also