ArcGIS Pro 2.7 API Reference Guide
FormatValue Method

ArcGIS.Desktop.Core.UnitFormats Namespace > DisplayUnitFormat Class : FormatValue Method
The value to be formatted
Format the input value using the unit format. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public string FormatValue( 
   double value
)
Public Function FormatValue( _
   ByVal value As Double _
) As String

Parameters

value
The value to be formatted

Return Value

The formatted value
Remarks
For the unit format of type UnitFormatType.Location use FormatLocation(Double,Double,SpatialReference) or FormatLocation(MapPoint) with the location to be formatted.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

DisplayUnitFormat Class
DisplayUnitFormat Members