Show / Hide Table of Contents

Class AreaUnit

Class used to represent units of measurement for an area.

Inheritance
Object
Unit
AreaUnit
Unit.FromWkid(Int32)
Unit.Wkid
Unit.Name
Unit.Abbreviation
Unit.DisplayName
Unit.PluralDisplayName
Unit.IsEqual(Unit)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
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 String that represents this instance.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.