Spread WPF 18
GrapeCity.Spreadsheet Namespace / ITableColumns Interface / Add Method
An integer value indicates the relative position of the new column that starts at 1. The previous column at this position is shifted outward.
The total number of new columns.


In This Topic
    Add Method (ITableColumns)
    In This Topic
    Adds a new column to the table object.
    Syntax
    'Declaration
     
    Function Add( _
       Optional ByVal position As Integer, _
       Optional ByVal count As Integer _
    ) As ITableColumn
    'Usage
     
    Dim instance As ITableColumns
    Dim position As Integer
    Dim count As Integer
    Dim value As ITableColumn
     
    value = instance.Add(position, count)
    ITableColumn Add( 
       int position,
       int count
    )

    Parameters

    position
    An integer value indicates the relative position of the new column that starts at 1. The previous column at this position is shifted outward.
    count
    The total number of new columns.

    Return Value

    An ITableColumn object that represents the new column.
    Remarks
    If position is not specified, a new rightmost column is added. A name for the column is automatically generated. The name of the new column can be changed after the column is added.
    See Also