Skip to content

DiGi.Unit.Enums

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.Unit.Enums Namespace

Enums

AccelerationUnit Enum

Defines the supported units for acceleration measurement.

public enum AccelerationUnit

Fields

MeterPerSecondSquared 0

Meters per second squared unit of acceleration (SI base unit equivalent).

StandardGravity 1

Standard gravity unit of acceleration.

FootPerSecondSquared 2

Feet per second squared unit of acceleration.

AmountOfSubstanceUnit Enum

Defines the supported units for amount of substance measurement.

public enum AmountOfSubstanceUnit

Fields

Mole 0

Mole unit of substance amount (SI base unit).

Millimole 1

Millimole unit of substance amount.

Micromole 2

Micromole unit of substance amount.

Kilomole 3

Kilomole unit of substance amount.

AngleUnit Enum

Defines the supported units of measurement for angles.

public enum AngleUnit

Fields

Degree 0

Represents an angle measured in degrees.

Radian 1

Represents an angle measured in radians.

AreaUnit Enum

Defines the units of measurement for area.

public enum AreaUnit

Fields

SquareMillimeter 0

Square millimeter.

SquareMeter 1

Square meter.

SquareKilometer 2

Square kilometer.

SquareFoot 3

Square foot.

SquareInch 4

Square inch.

DensityUnit Enum

Defines the units of measurement for density, representing the amount of mass per unit volume.

public enum DensityUnit

Fields

KilogramPerCubicMeter 0

Kilogram per cubic meter (kg/m3).

GramPerCubicCentimeter 1

Gram per cubic centimeter (g/cm3).

ElectricCurrentUnit Enum

Defines the supported units for electric current measurement.

public enum ElectricCurrentUnit

Fields

Ampere 0

Ampere unit of electric current (SI base unit).

Milliampere 1

Milliampere unit of electric current.

Microampere 2

Microampere unit of electric current.

Kiloampere 3

Kiloampere unit of electric current.

ElectricPotentialUnit Enum

Defines the supported units for electric potential (voltage) measurement.

public enum ElectricPotentialUnit

Fields

Volt 0

Volt unit of voltage (SI derived unit).

Millivolt 1

Millivolt unit of voltage.

Microvolt 2

Microvolt unit of voltage.

Kilovolt 3

Kilovolt unit of voltage.

ElectricResistanceUnit Enum

Defines the supported units for electric resistance measurement.

public enum ElectricResistanceUnit

Fields

Ohm 0

Ohm unit of electric resistance (SI derived unit).

Milliohm 1

Milliohm unit of electric resistance.

Microohm 2

Microohm unit of electric resistance.

Kilohm 3

Kilohm unit of electric resistance.

Megohm 4

Megohm unit of electric resistance.

EnergyUnit Enum

Defines the supported units for energy measurement.

public enum EnergyUnit

Fields

Joule 0

Joule unit of energy (SI derived unit).

Millijoule 1

Millijoule unit of energy.

Microjoule 2

Microjoule unit of energy.

Kilojoule 3

Kilojoule unit of energy.

Megajoule 4

Megajoule unit of energy.

WattHour 5

Watt-hour unit of energy.

KilowattHour 6

Kilowatt-hour unit of energy.

Calorie 7

Calorie unit of energy.

Kilocalorie 8

Kilocalorie unit of energy.

Btu 9

British thermal unit of energy.

ForceUnit Enum

Defines the supported units for force measurement.

public enum ForceUnit

Fields

Newton 0

Newton unit of force (SI derived unit).

Millinewton 1

Millinewton unit of force.

Micronewton 2

Micronewton unit of force.

Kilonewton 3

Kilonewton unit of force.

Meganewton 4

Meganewton unit of force.

PoundForce 5

Pound-force unit of force.

FrequencyUnit Enum

Defines the supported units for frequency measurement.

public enum FrequencyUnit

Fields

Hertz 0

Hertz unit of frequency (SI derived unit).

Kilohertz 1

Kilohertz unit of frequency.

Megahertz 2

Megahertz unit of frequency.

Gigahertz 3

Gigahertz unit of frequency.

IlluminanceUnit Enum

Defines the supported units for illuminance measurement.

public enum IlluminanceUnit

Fields

Lux 0

Lux unit of illuminance (SI derived unit).

Footcandle 1

Footcandle unit of illuminance.

LengthUnit Enum

Defines the supported units for length measurement.

public enum LengthUnit

Fields

Milimeter 0

Millimeter unit of length.

Meter 1

Meter unit of length.

Kilometer 2

Kilometer unit of length.

Feet 3

Feet unit of length.

Inch 4

Inch unit of length.

LuminousFluxUnit Enum

Defines the supported units for luminous flux measurement.

public enum LuminousFluxUnit

Fields

Lumen 0

Lumen unit of luminous flux (SI derived unit).

LuminousIntensityUnit Enum

Defines the supported units for luminous intensity measurement.

public enum LuminousIntensityUnit

Fields

Candela 0

Candela unit of luminous intensity (SI base unit).

Millicandela 1

Millicandela unit of luminous intensity.

Microcandela 2

Microcandela unit of luminous intensity.

MassUnit Enum

Defines the supported units for mass measurement.

public enum MassUnit

Fields

Kilogram 0

Kilogram unit of mass (SI base unit).

Gram 1

Gram unit of mass.

Milligram 2

Milligram unit of mass.

Microgram 3

Microgram unit of mass.

Ton 4

Ton (metric ton) unit of mass.

Pound 5

Pound unit of mass.

Ounce 6

Ounce unit of mass.

PowerDensityUnit Enum

Represents units of measurement for power density, which is the amount of power flowing through, or falling upon, a surface area.

public enum PowerDensityUnit

Fields

WattPerSquareMeter 0

Watt per square meter (W/m2).

KilowattPerSquareMeter 1

Kilowatt per square meter (kW/m2).

PowerUnit Enum

Defines the supported units for power measurement.

public enum PowerUnit

Fields

Watt 0

Watt unit of power (SI derived unit).

Milliwatt 1

Milliwatt unit of power.

Microwatt 2

Microwatt unit of power.

Kilowatt 3

Kilowatt unit of power.

Megawatt 4

Megawatt unit of power.

Horsepower 5

Mechanical horsepower unit of power.

PressureUnit Enum

Defines the supported units for pressure measurement.

public enum PressureUnit

Fields

Pascal 0

Pascal unit of pressure (SI derived unit).

Millipascal 1

Millipascal unit of pressure.

Micropascal 2

Micropascal unit of pressure.

Kilopascal 3

Kilopascal unit of pressure.

Megapascal 4

Megapascal unit of pressure.

Bar 5

Bar unit of pressure.

Millibar 6

Millibar unit of pressure.

Psi 7

Pounds per square inch unit of pressure.

Atmosphere 8

Standard atmosphere unit of pressure.

SpeedUnit Enum

Defines the supported units for speed/velocity measurement.

public enum SpeedUnit

Fields

MeterPerSecond 0

Meters per second unit of speed (SI base unit equivalent).

KilometerPerHour 1

Kilometers per hour unit of speed.

MilePerHour 2

Miles per hour unit of speed.

FootPerSecond 3

Feet per second unit of speed.

TemperatureUnit Enum

Specifies the units of measurement for temperature.

public enum TemperatureUnit

Fields

Celsius 0

The Celsius scale for temperature.

Fahrenheit 1

The Fahrenheit scale for temperature.

Kelvin 2

The Kelvin scale for temperature.

TimeUnit Enum

Defines the units of time measurement.

public enum TimeUnit

Fields

Second 0

Represents a time unit of one second.

Minute 1

Represents a time unit of one minute.

Hour 2

Represents a time unit of one hour.

UnitCategory Enum

Defines the categories of units.

public enum UnitCategory

Fields

Undefined 0

The unit category is undefined.

Length 1

Units related to length measurement.

Area 2

Units related to area measurement.

Volume 3

Units related to volume measurement.

Temperature 4

Units related to temperature measurement.

Time 5

Units related to time measurement.

PowerDensity 6

Units related to power density measurement.

Density 7

Units related to density measurement.

Angle 8

Units related to angle measurement.

Mass 9

Units related to mass measurement.

ElectricCurrent 10

Units related to electric current measurement.

AmountOfSubstance 11

Units related to amount of substance measurement.

LuminousIntensity 12

Units related to luminous intensity measurement.

Force 13

Units related to force measurement.

Pressure 14

Units related to pressure measurement.

Energy 15

Units related to energy measurement.

Power 16

Units related to power measurement.

ElectricPotential 17

Units related to electric potential measurement.

ElectricResistance 18

Units related to electric resistance measurement.

Frequency 19

Units related to frequency measurement.

Speed 20

Units related to speed measurement.

Acceleration 21

Units related to acceleration measurement.

LuminousFlux 22

Units related to luminous flux measurement.

Illuminance 23

Units related to illuminance measurement.

Other 24

Other unit categories not explicitly defined.

UnitDataType Enum

Specifies the data type of a unit.

public enum UnitDataType

Fields

Undefined 0

The data type is undefined.

Float 1

Signed 4 bytes float.

Double 2

Signed 8 bytes double.

Decimal 3

Signed 16 bytes decimal.

VolumeUnit Enum

Defines the units of measurement for volume.

public enum VolumeUnit

Fields

CubicMillimeter 0

Represents a volume in cubic millimeters.

CubicMeter 1

Represents a volume in cubic meters.

CubicKilometer 2

Represents a volume in cubic kilometers.