Class AreaUnit
Class used to represent units of measurement for an area.
Namespace: Esri.ArcGISRuntime.Geometry
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class AreaUnit : Unit
Remarks
A common scenario for using the AreaUnit class is to display various AreaUnits for polygon geometry. For example, a user would want to know the area of a polygon in Acres, Hectares, SquareMiles, etc. Typically, the AreaGeodetic(Geometry, AreaUnit, GeodeticCurveType) static method is used on an input Polygon and the value returned is in square meters. The FromSquareMeters(Double) method could then be used to obtain one or more of those AreaUnits values (i.e. Acres, Hectares, SquareMiles, etc).
Properties
Name | Description |
---|---|
UnitType | Gets the type of this unit (Area). |
Methods
Name | Description |
---|---|
ConvertFrom(AreaUnit, Double) | Converts a value in another unit of measure into this unit of measure. |
ConvertTo(AreaUnit, Double) | Converts a value in this unit of measure into another unit of measure. |
CreateFromLinearUnit(LinearUnit) | Creates an area unit from a LinearUnit. |
FromSquareMeters(Double) | Converts a SquareMeters value to this unit of measure. |
ToSquareMeters(Double) | Converts a value in this unit of measure to SquareMeters. |
ToString() | Returns a System.String that represents this instance. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |