enum LengthUnit : System.Enum

robot_2Generated
code_blocksInput

Description

The LengthUnit enumeration in the Sandbox.UI namespace defines possible units for various CSS properties that require length. It is used by the Length struct.

Members

Static Fields

Member NameSummary
AutoThe layout engine will calculate and select a width for the specified element.
PixelsThe length is in pixels.
PercentageThe length is a percentage (0-100) of the parent's length. (typically)
ViewHeightThe length is a percentage (0-100) of the viewport's height.
ViewWidthThe length is a percentage (0-100) of the viewport's width.
ViewMinThe length is a percentage (0-100) of the viewport's smallest side/edge.
ViewMaxThe length is a percentage (0-100) of the viewport's largest side/edge.
StartStart of the parent at the appropriate axis.
CoverFor background images, cover the entire element with the image, stretching and cropping as necessary.
ContainFor background images, contain the image within the element bounds.
EndEnd of the parent at the appropriate axis.
CenterIn the middle of the parent at the appropriate axis.
UndefinedSimilar to CSS 'unset', basically means we don't have a value; should only really be used under certain circumstances (e.g. to handle background sizing properly).
ExpressionRepresents a calc( ... ) expression.
RootEmFont size of the root element.
EmFont size of the current element.