Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Tables Class / Add Method
An integer value indicates the top row index.
An integer value indicates the left column index.
An integer value indicates the bottom row index.
An integer value indicates the right column index.
if set to true, the first row of the specified cell range will be used as table header.
A string value indicates the table name. If you won't provide, table name will be generated automatically.
A string value indicates the table style. Default value is TableStyleMedium2.


In This Topic
    Add Method (Tables)
    In This Topic
    Creates the Table at the specified cell range.
    Syntax
    'Declaration
     
    
    Public Function Add( _
       ByVal row As Integer, _
       ByVal column As Integer, _
       ByVal row2 As Integer, _
       ByVal column2 As Integer, _
       ByVal includeHeaders As Boolean, _
       Optional ByVal name As String, _
       Optional ByVal tableStyle As String _
    ) As ActionResult(Of Table)
    'Usage
     
    
    Dim instance As Tables
    Dim row As Integer
    Dim column As Integer
    Dim row2 As Integer
    Dim column2 As Integer
    Dim includeHeaders As Boolean
    Dim name As String
    Dim tableStyle As String
    Dim value As ActionResult(Of Table)
     
    value = instance.Add(row, column, row2, column2, includeHeaders, name, tableStyle)

    Parameters

    row
    An integer value indicates the top row index.
    column
    An integer value indicates the left column index.
    row2
    An integer value indicates the bottom row index.
    column2
    An integer value indicates the right column index.
    includeHeaders
    if set to true, the first row of the specified cell range will be used as table header.
    name
    A string value indicates the table name. If you won't provide, table name will be generated automatically.
    tableStyle
    A string value indicates the table style. Default value is TableStyleMedium2.

    Return Value

    A Table value represents the created table. null if the table cannot be created.
    See Also