com.esri.arcgis.framework
Interface INumberDialog

All Superinterfaces:
Serializable
All Known Implementing Classes:
NumberDialog

public interface INumberDialog
extends Serializable

Provides access to members that work with a dialog for getting a number.

Remarks

The number dialog is a dialog used for getting user input in the form of a number.

To get access to the INumberDialog interface you would create a new NumberDialog object.

Product Availability

Available with ArcGIS Desktop.

See Also:
ICoordinateDialog, CoordinateDialog

Method Summary
 boolean doModal(String title, double initialValue, int numDecs, int hWnd)
          Shows the dialog.
 double getValue()
          The number value entered in the dialog.
 

Method Detail

getValue

double getValue()
                throws IOException,
                       AutomationException
The number value entered in the dialog.

Remarks

The Value property allows you to get the number that was entered in the dialog.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Returns:
The val
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

doModal

boolean doModal(String title,
                double initialValue,
                int numDecs,
                int hWnd)
                throws IOException,
                       AutomationException
Shows the dialog.

Description

Title is a string that specifies the title of the dialog.

initialValue specifies the intial value to be displayed in the dialog.

numDecs specifies the number of decimal places to be used for the value.

hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.

Remarks

If a non-numeric value was entered or if the dialog was cancelled, the DoModal method returns False.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
title - The title (in)
initialValue - The initialValue (in)
numDecs - The numDecs (in)
hWnd - The hWnd (A COM typedef) (in)
Returns:
The okPressed
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.