![](../icons/Help.png) | CPROJiSaveCloseDocuments Method |
Saves and closes (if visible) documents contained in the current project.
Available since Oasis montaj version: 5.0
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetXAssembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
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
Voxel
VoxelInversion
GMS3D
GMS2D
All
Syntaxpublic static int iSaveCloseDocuments(
CGXNETCore gxNetShared,
string type
)
Public Shared Function iSaveCloseDocuments (
gxNetShared As CGXNETCore,
type As String
) As Integer
public:
static int iSaveCloseDocuments(
CGXNETCore^ gxNetShared,
String^ type
)
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
See Also