Unit Operators and Type Conversions

The Unit type exposes the following members.

Operators
  NameDescription
Public operatorStatic memberEquality
Compares two Unit objects for equality.
Public operatorStatic member(Double to Unit)
Implicit conversion from double. This allows you to assign a double to any variable or property of type Unit without constructors or casting.
Public operatorStatic member(String to Unit)
Implicit conversion from string. This allows you to assign a sized string to any variable or property of type Unit without constructors or casting.
Public operatorStatic member(Unit to Double)
Implicit conversion to double. The value is expressed in points.
Public operatorStatic memberInequality
Compares two Unit objects for inequality.
Top
See Also