National Instruments 374318A-01 用户手册

下载
页码 109
Chapter 2
Measurement Studio Measurement Computing Edition .NET Class Libraries
2-32
ni.com
Numeric Edit Control
Use the Measurement Studio numeric edit control, as shown in Figure 2-17, 
to display numeric values and to provide a way by which end users can edit 
numeric values. Typically, you use a numeric edit control to input or display 
double numerical data instead of using a Web Forms TextBox control.
Figure 2-17.  Web Forms Numeric Edit Control
With the numeric edit control and the classes that interface with the control 
you can perform the following operations:
Perform range checking.
Set the minimum range value to negative infinity and the maximum 
range value to positive infinity.
Create custom formats or use built-in numeric formats including 
generic, engineering, and simple double.
Connect to a Measurement Studio numeric control so that if you 
change the value of one control, it changes the value of the other 
control.
Set the coercion mode property to discrete or continuous values. This 
property configures the control to allow entry or display of either a 
discrete set of values or any value.
Validate and format data without posting back to the Web server.
Tip
For more information about using the Web Forms numeric edit control, refer to the 
NumericEdit Class section in the NI Measurement Studio Help.