ArcObjects Library Reference (Cadastral)  

ICadastralUnitConversion.ConvertString Method

Convert units of string value to double. Example: '55 ft'. If the unit suffix string is missing, the default unit is used.

[Visual Basic .NET]
Public Function ConvertString ( _
    ByVal val As String, _
    ByVal defaultUnit As esriCadastralDistanceUnits, _
    ByVal outputUnit As esriCadastralDistanceUnits _
) As Double
[C#]
public double ConvertString (
    string val,
    esriCadastralDistanceUnits defaultUnit,
    esriCadastralDistanceUnits outputUnit
);

Product Availability

Available with ArcGIS Desktop.

Remarks

This method returns a double from a string that represents a length or a distance value.

The string may have a suffix string that indicates its unit.

The following strings indicate the possible unit string suffix designators:

Name Value
meter 'm'
international feet 'ft'
us survey feet 'ftus'
links 'lk'
us survey links 'lkus'
rod 'rd'
us survey rod 'rdus'
chain 'ch'
us survey chain 'chus'

See Also

ICadastralUnitConversion Interface