[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.IRange.CreateTable

CreateTable Method

CreateTable(bool, string, string)

Creates the ITable at the specified cell range.

Declaration
ITable CreateTable(bool includeHeaders, string name = null, string tableStyle = null)
Function CreateTable(includeHeaders As Boolean, Optional name As String = Nothing, Optional tableStyle As String = Nothing) As ITable
Parameters
Type Name Description
bool includeHeaders

if set to true, the first row of the specified cell range will be used as table header.

string name

A string value indicates the table name. If you won't provide, table name will be generated automatically.

string tableStyle

A string value indicates the table style. Default value is TableStyleMedium2.

Returns
Type Description
ITable

A ITable object represents the created table. null if the table cannot be created.