Spread WPF 18
GrapeCity.Spreadsheet Namespace / IRange Interface / CreateTable Method
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
    CreateTable Method (IRange)
    In This Topic
    Creates the ITable at the specified cell range.
    Syntax
    'Declaration
     
    Function CreateTable( _
       ByVal includeHeaders As Boolean, _
       Optional ByVal name As String, _
       Optional ByVal tableStyle As String _
    ) As ITable
    'Usage
     
    Dim instance As IRange
    Dim includeHeaders As Boolean
    Dim name As String
    Dim tableStyle As String
    Dim value As ITable
     
    value = instance.CreateTable(includeHeaders, name, tableStyle)
    ITable CreateTable( 
       bool includeHeaders,
       string name,
       string tableStyle
    )

    Parameters

    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 ITable object represents the created table. null if the table cannot be created.
    See Also