Click or drag to resize

AreaUnit Class

Class used to represent units of measurement for an area.
Inheritance Hierarchy

Namespace:  Esri.ArcGISRuntime.Geometry
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.9.0
Syntax
public sealed class AreaUnit : Unit

The AreaUnit type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAbbreviation
Gets the abbreviation of the unit.
(Inherited from Unit.)
Public propertyDisplayName
Gets the display name of the unit.
(Inherited from Unit.)
Public propertyName
Gets the name of the unit.
(Inherited from Unit.)
Public propertyCode examplePluralDisplayName
Retrieve the plural display name of the unit.
(Inherited from Unit.)
Public propertyUnitId
Gets the well-known ID of the unit.
(Inherited from Unit.)
Public propertyUnitType
Gets the type of this unit (Area).
(Overrides UnitUnitType.)
Top
Methods
  NameDescription
Public methodConvertFrom
Converts a value in another unit of measure into this unit of measure.
Public methodConvertTo
Converts a value in this unit of measure into another unit of measure.
Public methodStatic memberCreateFromLinearUnit
Creates an area unit from a LinearUnit.
Public methodFromSquareMeters
Converts a SquareMeters value to this unit of measure.
Public methodIsEqual
Returns true of the Unit instances are the same.
(Inherited from Unit.)
Public methodToSquareMeters
Converts a value in this unit of measure to SquareMeters.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
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).

See Also