| CPROJiAddGridDocument Method |
Adds (and opens) a grid document file in the current project with a particular colour distribution and colour file.
Available since Oasis montaj version: 9.7
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
The passed file name must be a valid Grid document
with an extension and qualifiers (if applicable).
Syntax public static int iAddGridDocument(
CGXNETCore gxNetShared,
string name,
string colors,
int method,
int display
)
Public Shared Function iAddGridDocument (
gxNetShared As CGXNETCore,
name As String,
colors As String,
method As Integer,
display As Integer
) As Integer
public:
static int iAddGridDocument(
CGXNETCore^ gxNetShared,
String^ name,
String^ colors,
int method,
int display
)
static member iAddGridDocument :
gxNetShared : CGXNETCore *
name : string *
colors : string *
method : int *
display : int -> int
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - name
- Type: SystemString
Document name - colors
- Type: SystemString
Colour zone file to use - method
- Type: SystemInt32
Colour method to use - one of the ITR_ZONE_XXXX values - display
- Type: SystemInt32
<define>PROJ_DISPLAY</define>
Return Value
Type:
Int32
0 - Ok
1 - Error
See Also