Table of Contents

Struct MeasureConstraints

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

Immutable input to a measurement operation.

public readonly struct MeasureConstraints
Inherited Members

Constructors

MeasureConstraints(Size, LayoutSizeMode, LayoutSizeMode)

Initializes measurement constraints.

public MeasureConstraints(Size availableSize, LayoutSizeMode xSize = LayoutSizeMode.AtMost, LayoutSizeMode ySize = LayoutSizeMode.AtMost)

Parameters

availableSize Size
xSize LayoutSizeMode
ySize LayoutSizeMode

Properties

AvailableSize

Available margin-box size.

public Size AvailableSize { get; }

Property Value

Size

XSize

Horizontal sizing mode.

public LayoutSizeMode XSize { get; }

Property Value

LayoutSizeMode

YSize

Vertical sizing mode.

public LayoutSizeMode YSize { get; }

Property Value

LayoutSizeMode