LayoutFragment Class

A fragment of a child of a layout API container (https://drafts.css-houdini.org/css-layout-api-1/#layoutfragment), produced by LayoutChild.LayoutNextFragment: the layout reads its size, sets its position, and returns it in the childFragments of its result.

public sealed class LayoutFragment

Properties

NameDescription
BlockOffsetGets or sets the offset of the fragment from the block-start edge of the border box of the layout API container.
BlockSizeGets the block size of the border box of the fragment, in the writing mode of the layout API container.
BreakTokenGets the break token of the fragment: null, the children of a layout API container are not fragmented by its layout.
DataGets the data returned by the layout of the child when it is a layout API container (a value of the script engine, structured cloned), or null.
InlineOffsetGets or sets the offset of the fragment from the inline-start edge of the border box of the layout API container, before the relative positioning and the transforms.
InlineSizeGets the inline size of the border box of the fragment, in the writing mode of the layout API container.

Gets or sets the offset of the fragment from the block-start edge of the border box of the layout API container.

public double BlockOffset { get; set; }

Gets the block size of the border box of the fragment, in the writing mode of the layout API container.

public double BlockSize { get; }

Gets the break token of the fragment: null, the children of a layout API container are not fragmented by its layout.

public ChildBreakToken? BreakToken { get; }

Gets the data returned by the layout of the child when it is a layout API container (a value of the script engine, structured cloned), or null.

public object? Data { get; }

Gets or sets the offset of the fragment from the inline-start edge of the border box of the layout API container, before the relative positioning and the transforms.

public double InlineOffset { get; set; }

Gets the inline size of the border box of the fragment, in the writing mode of the layout API container.

public double InlineSize { get; }