Click or drag to resize

LengthUnit Class

Represents a supported length unit and provides unit-conversion helpers.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationLengthUnit

Namespace: Altaxo.Serialization
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class LengthUnit

The LengthUnit type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberCentimeter Gets the centimeter unit.
Public propertyStatic memberInch Gets the inch unit.
Public propertyStatic memberMil Gets the mil unit.
Public propertyStatic memberMillimeter Gets the millimeter unit.
Public propertyName Gets the display name of the unit.
Public propertyStatic memberPoint Gets the typographic point unit.
Public propertyShortcut Gets the shortcut of the unit.
Public propertyStatic memberShortcuts Gets the list of recognized unit shortcuts.
Public propertyUnitInMeter Gets the size of the unit in meters.
Top
Methods
 NameDescription
Public methodConvertFrom Converts a length value from the specified source unit into this unit.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromShortcut Gets a length unit from its shortcut.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberTryParse Parse a string that ends with a length unit to return the length unit. The string is trimmed at the end before use.
Top
See Also