|Import Statement:||import Esri.ArcGISRuntime 100.6|
- double convertFrom(AreaUnit fromUnit, double area)
- double convertFromSquareMeters(double squareMeters)
- double convertTo(AreaUnit toUnit, double area)
- double convertToSquareMeters(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.
AreaUnit may be created two possible ways, which are mutually exclusive. In the event both properties are assigned, the first one will take precedence.
- 1: areaUnitId (Enums.AreaUnitId), or
- 2: initLinearUnit (LinearUnit) (Since Esri.ArcGISRuntime 100.6)
When instantiated from a LinearUnit, the corresponding
AreaUnit will be created. I.e Meters will become square meters.
initLinearUnit : LinearUnit
The LinearUnit that corresponds to the desired
AreaUnit. E.g. Meters would cause this unit to be created as square meters.
This QML property was introduced in Esri.ArcGISRuntime 100.6.
Emitted when the areaUnitId 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(AreaUnit fromUnit, double area)
Returns an area squareMeters converted from square meters to this AreaUnit.
double convertTo(AreaUnit toUnit, double area)
Returns an area unitValue converted from this AreaUnit to square meters.