Interface IAngularConverter
- Namespace
- ESRI.ArcGIS.esriSystem
- Assembly
- ESRI.Server.System.dll
Provides access to methods that allow an angle to be converted from one direction unit to another.
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("1B64B6B4-1434-4172-8666-BBF83E5C467B")]
public interface IAngularConverter
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.
Methods
GetAngle(esriDirectionType, esriDirectionUnits)
Reads the angle.
double GetAngle(esriDirectionType dt, esriDirectionUnits du)
Parameters
Returns
GetString(esriDirectionType, esriDirectionUnits, int)
Reads the angle.
string GetString(esriDirectionType dt, esriDirectionUnits du, int precision)
Parameters
dtesriDirectionTypeduesriDirectionUnitsprecisionint
Returns
SetAngle(double, esriDirectionType, esriDirectionUnits)
Writes an angle.
bool SetAngle(double angle, esriDirectionType dt, esriDirectionUnits du)
Parameters
angledoubledtesriDirectionTypeduesriDirectionUnits
Returns
SetString(string, esriDirectionType, esriDirectionUnits)
Writes an angle.
bool SetString(string angle, esriDirectionType dt, esriDirectionUnits du)
Parameters
anglestringdtesriDirectionTypeduesriDirectionUnits