AreaUnit

class AreaUnit : MeasurementUnit

Defines an area unit of measurement. The area unit class is derived from the unit class.

See also

Constructors

Link copied to clipboard
fun AreaUnit(unitId: AreaUnitId)

Creates a unit given its known id.

Link copied to clipboard
fun AreaUnit(linearUnit: LinearUnit)

Creates an area unit given a linear unit. Creates a unit given a linear unit.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun convertFrom(fromUnit: AreaUnit, area: Double): Double

Converts a value in another UOM into this UOM.

Link copied to clipboard
fun convertTo(toUnit: AreaUnit, area: Double): Double

Converts a value in this UOM into another UOM.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun fromSquareMeters(area: Double): Double

Converts a square meter value to this UOM.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun toSquareMeters(area: Double): Double

Converts a value in this UOM to square meters.

Properties

Link copied to clipboard
val abbreviation: String

The abbreviation of the unit. The abbreviation for a specific unit.

Link copied to clipboard
val areaUnitId: AreaUnitId

The AreaUnitId of the given Area unit. If an error occurs then AreaUnitId.Other is returned.

Link copied to clipboard
val displayName: String

The display name of the unit. The display name for a specific unit.

Link copied to clipboard
val name: String

The name of the unit. The name for a specific unit.

Link copied to clipboard
val pluralDisplayName: String

The display name of the unit. The display name for a specific unit.

Link copied to clipboard
val wkid: Int

The well-known ID for the unit, or 0 for a custom unit.