|Import Statement:||import Esri.ArcGISRuntime 100.8|
- double convertFrom(LinearUnit fromUnit, double area)
- double convertFromMeters(double meters)
- double convertTo(LinearUnit toUnit, double angle)
- double convertToMeters(double unitValue)
Instances of types that inherit from the Units type, like this one does, are initialized as a specific unit of measurement. Each instance has properties for the unit name (singular, plural and abbreviated) and provides methods for unit conversion.
LinearUnit may be created two possible ways, which are mutually exclusive. In the even both properties are assigned, the first one will take precedence.
- 1: linearUnitId (Enums.LinearUnitId), or
- 2: initAreaUnit (AreaUnit) (Since Esri.ArcGISRuntime 100.6)
When instantiated from a AreaUnit, the corresponding
LinearUnit will be created. I.e. Square meters will become meters.
initAreaUnit : AreaUnit
The AreaUnit that corresponds to the desired
LinearUnit. E.g. Square meters would cause this unit to be created as meters
This QML property was introduced in Esri.ArcGISRuntime 100.6.
Emitted when the linearUnitId property changes.
Note: This signal will only be emitted when the property initializes during the instantiation of the component.
This QML signal was introduced in Esri.ArcGISRuntime 100.4.
double convertFrom(LinearUnit fromUnit, double area)
Returns an length meters converted from meters to this LinearUnit.
double convertTo(LinearUnit toUnit, double angle)
Returns an length value unitValue converted from this LinearUnit to meters.