 | CPROJiAddDocument Method |
Adds (and opens) a document file in the current project.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iAddDocument(
string name,
string type,
int display
)
public static int iAddDocument(
string name,
string type,
int display
)
Public Shared Function iAddDocument (
name As String,
type As String,
display As Integer
) As Integer
Public Shared Function iAddDocument (
name As String,
type As String,
display As Integer
) As Integer
public:
static int iAddDocument(
String^ name,
String^ type,
int display
)
public:
static int iAddDocument(
String^ name,
String^ type,
int display
)
static member iAddDocument :
name : string *
type : string *
display : int -> int
static member iAddDocument :
name : string *
type : string *
display : int -> int
Parameters
- name
- Type: SystemString
Document name - type
- Type: SystemString
Type of document to add - display
- Type: SystemInt32
<define>PROJ_DISPLAY</define>
Return Value
Type:
Int32
0 - Ok
1 - Error
Remarks
The passed file name must be a valid
file name complete with an extension and
qualifiers (if applicable).
The type string can be one of the following:
Database
Grid
Map
3DView
Geosurface
Voxel
VoxelInversion
GMS3D
GMS2D
See Also