Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / IWorkbook Interface / Close Method
If there are no changes to the workbook, this argument is ignored. If set to True , changes are saved to the workbook. If there is not yet a file name associated with the workbook, then filename is used. If filename is omitted and there is no file name associated with the workbook, saveChanges is ignored.
Save changes under this file name.


In This Topic
    Close Method
    In This Topic
    Closes this workbook.
    Syntax
    'Declaration
     
    
    Sub Close( _
       Optional ByVal saveChanges As Boolean, _
       Optional ByVal filename As String _
    ) 
    'Usage
     
    
    Dim instance As IWorkbook
    Dim saveChanges As Boolean
    Dim filename As String
     
    instance.Close(saveChanges, filename)
    void Close( 
       bool saveChanges,
       string filename
    )

    Parameters

    saveChanges
    If there are no changes to the workbook, this argument is ignored. If set to True , changes are saved to the workbook. If there is not yet a file name associated with the workbook, then filename is used. If filename is omitted and there is no file name associated with the workbook, saveChanges is ignored.
    filename
    Save changes under this file name.
    See Also