  | CPROJiSaveCloseDocuments Method  | 
 Saves and closes (if visible) documents contained in the current project.
 
    Namespace: 
   Geosoft.Desktop.GXNetX
    Assembly:
   geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
Syntaxpublic static int iSaveCloseDocuments(
	CGXNETCore gxNetShared,
	string type
)
public static int iSaveCloseDocuments(
	CGXNETCore gxNetShared,
	string type
)
Public Shared Function iSaveCloseDocuments ( 
	gxNetShared As CGXNETCore,
	type As String
) As Integer
Public Shared Function iSaveCloseDocuments ( 
	gxNetShared As CGXNETCore,
	type As String
) As Integer
public:
static int iSaveCloseDocuments(
	CGXNETCore^ gxNetShared, 
	String^ type
)
public:
static int iSaveCloseDocuments(
	CGXNETCore^ gxNetShared, 
	String^ type
)
static member iSaveCloseDocuments : 
        gxNetShared : CGXNETCore * 
        type : string -> int 
static member iSaveCloseDocuments : 
        gxNetShared : CGXNETCore * 
        type : string -> int 
Parameters
- gxNetShared
 - Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - type
 - Type: SystemString
Type of document to save / close 
Return Value
Type: 
Int32
0  - Ok
-1 - User hit cancel in save dialog
1  - Error
Remarks
This wrapper brings up the save dialog tool to allow
the user to save the modified documents for this project.
Only documents that have actually changed will be listed.
The type string can be one of the following:
   Database      
   Grid          
   Map           
   3DView        
   Geosurface
   Voxel         
   VoxelInversion
   GMS3D         
   GMS2D
   All
See Also