ArcObjects Library Reference (System)  

INumberFormatOperations.Increment Method

Increments a value according to the numbers format.

[Visual Basic .NET]
Public Function Increment ( _
    ByVal Value As Double _
) As Double
[C#]
public double Increment (
    double Value
);
[C++]
HRESULT Increment(
  double Value,
  double* Result
);
[C++]

Parameters

Value [in]   Value is a parameter of type double Result [out, retval]   Result is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Increment method reacts differently depending on the number format object used and how that object is configured. A NumericFormat configured for a specific number of decimal places will increment to the last decimal place. For example, if two decimal places are specified, 22.533 would increment to 22.54; if the object is configured for two significant digits, 22.533 would increment to 24. For an AngleFormat, the input value is converted to the display format first then the same rules apply as for a NumericFormat.

See Also

INumberFormatOperations Interface