Click or drag to resize

CEMAPTEMPLATEiGetLine Method

Returns the end points of a line.

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

public int iGetLine(
	string str_val,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y
)

Parameters

str_val
Type: SystemString
user prompt string
min_x
Type: SystemDouble
X1 in view user units
min_y
Type: SystemDouble
Y1
max_x
Type: SystemDouble
X2
max_y
Type: SystemDouble
Y2

Return Value

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