Click or drag to resize

CEMAPTEMPLATE.iGetBox Method

Returns the coordinates of a user selected box.

Namespace:  Geosoft.Desktop.GXNetX
Assembly:  geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2024.2.0.25
Syntax
public int iGetBox(
	string state,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y
)

public int iGetBox(
	string state,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y
)

Parameters

state
Type: System.String
user prompt string
min_x
Type: System.Double
X minimum in current view user units.
min_y
Type: System.Double
Y minimum in current view user units.
max_x
Type: System.Double
X maximum in current view user units.
max_y
Type: System.Double
Y maximum in current view user units.

Return Value

Type: Int32
0 if point returned. 1 if user cancelled.
Remarks
The coordinates are returned in the current template units (See GetUnits and SetUnits in MAPTEMPLATE)
See Also