Skip to content

Enum LengthType

Definition

Namespace: StardewUI.Layout
Assembly: StardewUI.dll

Types of length calculation available for a Length.

public enum LengthType

Inheritance
ObjectValueTypeEnum ⇦ LengthType

Remarks

For all types, content may overflow or be clipped if the available size is not large enough.

Fields

Name Value Description
Content 0 Ignore the specified Value and use a value just high enough to fit all content.
Px 1 Use the exact Value specified, in pixels.
Percent 2 Use the specified Value as a percentage of the available width/height.
Stretch 3 Ignore the specified Value and stretch to the full available width/height.