ArcGIS Pro 2.6 API Reference Guide
ValueToString Method

ArcGIS.Desktop.Mapping Namespace > NumberFormat Class : ValueToString Method
The format to use
The value to format
Returns a formatted value based on the input ArcGIS.Core.CIM.CIMNumberFormat and value. This method must be called on the MCT. Use QueuedTask.Run
Syntax
public static string ValueToString( 
   CIMNumberFormat numberFormat,
   double value
)
Public Shared Function ValueToString( _
   ByVal numberFormat As CIMNumberFormat, _
   ByVal value As Double _
) As String

Parameters

numberFormat
The format to use
value
The value to format

Return Value

A formatted value
Exceptions
ExceptionDescription
Number format cannot be null
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

NumberFormat Class
NumberFormat Members