|  | CEMAPTEMPLATEiGetBox Method  | 
 Returns the coordinates of a user selected box.
 
    Namespace: 
   Geosoft.Desktop.GXNetX
    Assembly:
   geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
 Syntax
Syntaxpublic 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
)
Public Function iGetBox ( 
	state As String,
	ByRef min_x As Double,
	ByRef min_y As Double,
	ByRef max_x As Double,
	ByRef max_y As Double
) As Integer
Public Function iGetBox ( 
	state As String,
	ByRef min_x As Double,
	ByRef min_y As Double,
	ByRef max_x As Double,
	ByRef max_y As Double
) As Integer
public:
int iGetBox(
	String^ state, 
	double% min_x, 
	double% min_y, 
	double% max_x, 
	double% max_y
)
public:
int iGetBox(
	String^ state, 
	double% min_x, 
	double% min_y, 
	double% max_x, 
	double% max_y
)
member iGetBox : 
        state : string * 
        min_x : float byref * 
        min_y : float byref * 
        max_x : float byref * 
        max_y : float byref -> int 
member iGetBox : 
        state : string * 
        min_x : float byref * 
        min_y : float byref * 
        max_x : float byref * 
        max_y : float byref -> int 
Parameters
- state
- Type: SystemString
 user prompt string
- min_x
- Type: SystemDouble
 X minimum in current view user units.
- min_y
- Type: SystemDouble
 Y minimum in current view user units.
- max_x
- Type: SystemDouble
 X maximum in current view user units.
- max_y
- Type: SystemDouble
 Y maximum in current view user units.
Return Value
Type: 
Int32
0 if point returned.
1 if user cancelled.
 Remarks
Remarks
The coordinates are returned in the current template units
(See GetUnits and SetUnits in MAPTEMPLATE)
 See Also
See Also