Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / TableActionsCommand Class / Create Method
Target worksheet.
Cell range.
Determines the new table has headers or not.
Name of style applied to the new table.
true for clear formatting and false for otherwise.


In This Topic
    Create Method (TableActionsCommand)
    In This Topic
    Create a table style in the worksheet.
    Syntax
    'Declaration
     
    
    Public Shared Function Create( _
       ByVal worksheet As Worksheet, _
       ByVal range As Reference, _
       ByVal hasHeader As YesNoGuess, _
       ByVal tableStyleName As String, _
       Optional ByVal clearFormatting As Boolean _
    ) As TableActionsCommand
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim range As Reference
    Dim hasHeader As YesNoGuess
    Dim tableStyleName As String
    Dim clearFormatting As Boolean
    Dim value As TableActionsCommand
     
    value = TableActionsCommand.Create(worksheet, range, hasHeader, tableStyleName, clearFormatting)

    Parameters

    worksheet
    Target worksheet.
    range
    Cell range.
    hasHeader
    Determines the new table has headers or not.
    tableStyleName
    Name of style applied to the new table.
    clearFormatting
    true for clear formatting and false for otherwise.

    Return Value

    A command to create table.
    See Also