Spread Windows Forms 17
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Workbook Class / 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.
true if all associated object should be disposed.


In This Topic
    Close Method (Workbook)
    In This Topic
    Closes this workbook.
    Syntax
    'Declaration
     
    
    Public Sub Close( _
       Optional ByVal saveChanges As Boolean, _
       Optional ByVal filename As String, _
       Optional ByVal disposeAssociators As Boolean _
    ) 
    'Usage
     
    
    Dim instance As Workbook
    Dim saveChanges As Boolean
    Dim filename As String
    Dim disposeAssociators As Boolean
     
    instance.Close(saveChanges, filename, disposeAssociators)

    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.
    disposeAssociators
    true if all associated object should be disposed.
    See Also