  | CGUIiGetAreaOfInterest Method (IWin32Window, Double, Double, Double, Double, CPLY, CIPJ) | 
 Get the current area of interest from the application.
 
    Namespace: 
   Geosoft.Desktop.GXNet
    Assembly:
   geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2025.1.0.25
Syntaxpublic static int iGetAreaOfInterest(
	IWin32Window owner,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y,
	CPLY ply,
	CIPJ ipj
)
public static int iGetAreaOfInterest(
	IWin32Window owner,
	ref double min_x,
	ref double min_y,
	ref double max_x,
	ref double max_y,
	CPLY ply,
	CIPJ ipj
)
Public Shared Function iGetAreaOfInterest ( 
	owner As IWin32Window,
	ByRef min_x As Double,
	ByRef min_y As Double,
	ByRef max_x As Double,
	ByRef max_y As Double,
	ply As CPLY,
	ipj As CIPJ
) As Integer
Public Shared Function iGetAreaOfInterest ( 
	owner As IWin32Window,
	ByRef min_x As Double,
	ByRef min_y As Double,
	ByRef max_x As Double,
	ByRef max_y As Double,
	ply As CPLY,
	ipj As CIPJ
) As Integer
public:
static int iGetAreaOfInterest(
	IWin32Window^ owner, 
	double% min_x, 
	double% min_y, 
	double% max_x, 
	double% max_y, 
	CPLY^ ply, 
	CIPJ^ ipj
)
public:
static int iGetAreaOfInterest(
	IWin32Window^ owner, 
	double% min_x, 
	double% min_y, 
	double% max_x, 
	double% max_y, 
	CPLY^ ply, 
	CIPJ^ ipj
)
static member iGetAreaOfInterest : 
        owner : IWin32Window * 
        min_x : float byref * 
        min_y : float byref * 
        max_x : float byref * 
        max_y : float byref * 
        ply : CPLY * 
        ipj : CIPJ -> int 
static member iGetAreaOfInterest : 
        owner : IWin32Window * 
        min_x : float byref * 
        min_y : float byref * 
        max_x : float byref * 
        max_y : float byref * 
        ply : CPLY * 
        ipj : CIPJ -> int 
Parameters
- 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.GXNetCPLY
AOI Bounding PLY (Filled if available, otherwise empty) - ipj
 - Type: GeoEngine.Core.GXNetCIPJ
AOI Bounding IPJ 
Return Value
Type: 
Int32<define>AOI_RETURN_STATE</define>
Remarks
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.
See Also