Gemstone Common Library
Show/Hide TOC

# VolumeUnit Enumeration

Represents the units available for a Volume value.

## Definition

Namespace: Gemstone.Units
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.173 -- Release Build+298e1c238b074757f82f41812034645402a162ed
C#
Request Example

    public enum VolumeUnit

VB
Request Example

    Public Enumeration VolumeUnit

C++
Request Example

    public enum class VolumeUnit

JavaScript
Request Example

    Gemstone.Units.VolumeUnit = function();
    Gemstone.Units.VolumeUnit.createEnum('Gemstone.Units.VolumeUnit', false);

## Members

CubicMeters | 0 | Cubic meter volume units.
Liters | 1 | Liter volume units.
Teaspoons | 2 | Teaspoon volume units.
MetricTeaspoons | 3 | Metric teaspoon volume units.
Tablespoons | 4 | Tablespoon volume units.
MetricTablespoons | 5 | Metric tablespoon volume units.
Cups | 6 | Cup volume units.
MetricCups | 7 | Metric cup volume units.
FluidOunces | 8 | Fluid ounce volume units.
Pints | 9 | Pint volume units.
Quarts | 10 | Quart volume units.
Gallons | 11 | Gallon volume units.
CubicInches | 12 | Cubic inch volume units.
CubicFeet | 13 | Cubic feet volume units.

## Extension Methods

GetDescription | Retrieves the description of the value that this Enum represents extracted from the DescriptionAttribute, or the enumeration name if no description is available. (Defined by EnumExtensions)
GetFormattedName | Retrieves a formatted name of the value that this Enum represents for visual display. Enum string name is converted to a label with spaces before each capital letter, other than the first. (Defined by EnumExtensions)

## See Also

#### Reference

Gemstone.Units Namespace