Click or drag to resize

CPROJiAddGridDocument Method

Adds (and opens) a grid document file in the current project with a particular colour distribution and colour file.

Namespace:  Geosoft.Desktop.GXNet
Assembly:  geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntax
public static int iAddGridDocument(
	string name,
	string colors,
	int method,
	int display
)

public static int iAddGridDocument(
	string name,
	string colors,
	int method,
	int display
)

Parameters

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
Remarks
The passed file name must be a valid Grid document with an extension and qualifiers (if applicable).
See Also