Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IWorksheets Interface / Add Method
A string value indicates the name of the IWorksheet.
An integer value indicates the position of the new created IWorksheet.


In This Topic
    Add Method (IWorksheets)
    In This Topic
    Creates a new IWorksheet.
    Syntax
    'Declaration
     
    
    Function Add( _
       Optional ByVal worksheetName As String, _
       Optional ByVal insertAt As Integer _
    ) As IWorksheet
    'Usage
     
    
    Dim instance As IWorksheets
    Dim worksheetName As String
    Dim insertAt As Integer
    Dim value As IWorksheet
     
    value = instance.Add(worksheetName, insertAt)

    Parameters

    worksheetName
    A string value indicates the name of the IWorksheet.
    insertAt
    An integer value indicates the position of the new created IWorksheet.
    See Also