Click or drag to resize
CGUIiGetAreaOfInterest Method (CGXNETCore, IWin32Window, Double, Double, Double, Double, CPLY, CIPJ)
Get the current area of interest from the application.

Available since Oasis montaj version: 5.0
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.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
Depending on what is currently visible on screen and the defined coordinate system the user may be prompted by a warning and optionaly cancel the process.
Syntax
public static int iGetAreaOfInterest(
	CGXNETCore gxNetShared,
	IWin32Window owner,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y,
	CPLY ply,
	CIPJ ipj
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
owner
Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of.
min_x
Type: SystemDouble
AOI Area Min X
min_y
Type: SystemDouble
AOI Area Min Y
max_x
Type: SystemDouble
AOI Area Max X
max_y
Type: SystemDouble
AOI Area Max y
ply
Type: GeoEngine.Core.GXNetXCPLY
AOI Bounding PLY (Filled if available, otherwise empty)
ipj
Type: GeoEngine.Core.GXNetXCIPJ
AOI Bounding IPJ

Return Value

Type: Int32
<define>AOI_RETURN_STATE</define>
See Also