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 LayoutFragmentProperties
| Name | Description |
|---|---|
| BlockOffset | Gets or sets the offset of the fragment from the block-start edge of the border box of the layout API container. |
| BlockSize | Gets the block size of the border box of the fragment, in the writing mode of the layout API container. |
| BreakToken | Gets the break token of the fragment: null, the children of a layout API container are not fragmented by its layout. |
| Data | 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. |
| InlineOffset | 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. |
| InlineSize | Gets the inline size of the border box of the fragment, in the writing mode of the layout API container. |
BlockOffset
LayoutApiObjects.csGets 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; }Property value
See also
BlockSize
LayoutApiObjects.csGets the block size of the border box of the fragment, in the writing mode of the layout API container.
public double BlockSize { get; }Property value
See also
BreakToken
LayoutApiObjects.csGets 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; }Property value
See also
InlineOffset
LayoutApiObjects.csGets 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; }Property value
See also
InlineSize
LayoutApiObjects.csGets the inline size of the border box of the fragment, in the writing mode of the layout API container.
public double InlineSize { get; }