ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.SystemCore Namespace / DirectionUnitFormatConversion Class / ConvertToDouble Method / ConvertToDouble(String,ConversionDefinition) Method
The value to convert.
The input and output direction type and units.

In This Topic
    ConvertToDouble(String,ConversionDefinition) Method
    In This Topic
    Converts a string to a double from definition.DirectionTypeIn, definition.DirectionUnitsIn to definition.DirectionTypeOut, definition.DirectionUnitsOut.
    Syntax
    public double ConvertToDouble( 
       string value,
       ConversionDefinition definition
    )
    Public Overloads Function ConvertToDouble( _
       ByVal value As String, _
       ByVal definition As ConversionDefinition _
    ) As Double

    Parameters

    value
    The value to convert.
    definition
    The input and output direction type and units.

    Return Value

    A double.
    Exceptions
    ExceptionDescription
    A double cannot be used to represent DegreesMinutesSeconds.
    A double cannot be used to represent QuadrantBearing direction type.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also