LayoutConstraintsOptions Class

The constraints a layout gives to a child (https://drafts.css-houdini.org/css-layout-api-1/#dictdef-layoutconstraintsoptions), in the writing mode of the layout API container. A member that is not set is null.

public sealed class LayoutConstraintsOptions

Constructors

NameDescription
LayoutConstraintsOptions()

LayoutConstraintsOptions()

public LayoutConstraintsOptions()

No documentation is available.

Properties

NameDescription
AvailableBlockSizeGets the available block size.
AvailableInlineSizeGets the available inline size.
BlockFragmentationOffsetGets the offset where the child should fragment.
BlockFragmentationTypeGets the type of the fragmentation of the child.
DataGets the data given to the layout of the child when it is a layout API container (a value of the script engine, structured cloned).
FixedBlockSizeGets the border-box block size the child must have.
FixedInlineSizeGets the border-box inline size the child must have.
PercentageBlockSizeGets the size the percentages of the block axis resolve against.
PercentageInlineSizeGets the size the percentages of the inline axis resolve against.

AvailableBlockSize

LayoutApiObjects.cs

Gets the available block size.

public double? AvailableBlockSize { get; init; }

AvailableInlineSize

LayoutApiObjects.cs

Gets the available inline size.

public double? AvailableInlineSize { get; init; }

BlockFragmentationOffset

LayoutApiObjects.cs

Gets the offset where the child should fragment.

public double? BlockFragmentationOffset { get; init; }

BlockFragmentationType

LayoutApiObjects.cs

Gets the type of the fragmentation of the child.

public BlockFragmentationType BlockFragmentationType { get; init; }

Gets the data given to the layout of the child when it is a layout API container (a value of the script engine, structured cloned).

public object? Data { get; init; }

FixedBlockSize

LayoutApiObjects.cs

Gets the border-box block size the child must have.

public double? FixedBlockSize { get; init; }

FixedInlineSize

LayoutApiObjects.cs

Gets the border-box inline size the child must have.

public double? FixedInlineSize { get; init; }

PercentageBlockSize

LayoutApiObjects.cs

Gets the size the percentages of the block axis resolve against.

public double? PercentageBlockSize { get; init; }

PercentageInlineSize

LayoutApiObjects.cs

Gets the size the percentages of the inline axis resolve against.

public double? PercentageInlineSize { get; init; }