IAngularConverter Interface

Provides access to methods that allow an angle to be converted from one direction unit to another.

Members

Name Description
Method GetAngle Reads the angle.
Method GetString Reads the angle.
Method SetAngle Writes an angle.
Method SetString Writes an angle.

IAngularConverter.GetAngle Method

Reads the angle.

Public Function GetAngle ( _
    ByVal dt As esriDirectionType, _
    ByVal du As esriDirectionUnits _
) As Double
public double GetAngle (
    esriDirectionType dt,
    esriDirectionUnits du
);

IAngularConverter.GetString Method

Reads the angle.

Public Function GetString ( _
    ByVal dt As esriDirectionType, _
    ByVal du As esriDirectionUnits, _
    ByVal precision As Integer _
) As String
public string GetString (
    esriDirectionType dt,
    esriDirectionUnits du,
    int precision
);

IAngularConverter.SetAngle Method

Writes an angle.

Public Function SetAngle ( _
    ByVal angle As Double, _
    ByVal dt As esriDirectionType, _
    ByVal du As esriDirectionUnits _
) As Boolean
public bool SetAngle (
    double angle,
    esriDirectionType dt,
    esriDirectionUnits du
);

IAngularConverter.SetString Method

Writes an angle.

Public Function SetString ( _
    ByVal angle As String, _
    ByVal dt As esriDirectionType, _
    ByVal du As esriDirectionUnits _
) As Boolean
public bool SetString (
    string angle,
    esriDirectionType dt,
    esriDirectionUnits du
);

Classes that implement IAngularConverter

Classes Description
AngularConverter Converts angle measurement from one unit to another.

Remarks

Use either the SetAngle method or SetString method to input a direction. These methods return a boolean which can be used to check if the input direction is valid. Use either the GetAngle or GetString method to retrieve the new direction. Each of these methods requires a direction type esriDirectionType and direction units esriDirectionUnits.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close