FragmentResult Class
The result of a layout (https://drafts.css-houdini.org/css-layout-api-1/#fragmentresult): a layout() callback returns a FragmentResultOptions dictionary, or constructs a FragmentResult from it to read the size the fragment will have.
public sealed class FragmentResultConstructors
| Name | Description |
|---|---|
| FragmentResult(FragmentResultOptions?) | Constructs the result of the layout that is running (https://drafts.css-houdini.org/css-layout-api-1/#dom-fragmentresult-fragmentresult, "construct a fragment result"). |
FragmentResult(FragmentResultOptions?)
LayoutApiObjects.csConstructs the result of the layout that is running (https://drafts.css-houdini.org/css-layout-api-1/#dom-fragmentresult-fragmentresult, "construct a fragment result").
public FragmentResult(FragmentResultOptions? options = null)Parameters
optionsFragmentResultOptions?- The size of the fragment and the fragments of the children.
Exceptions
TypeErrorException- A child fragment or a break token was not produced by the layout that is running, or a child fragment is listed twice.
DomException- An
InvalidStateErrorwhen nolayout()callback is running; aDataCloneErrorwhen the data cannot be cloned.
See also
Properties
| Name | Description |
|---|---|
| BlockSize | Gets the border-box block size the fragment will have. |
| InlineSize | Gets the border-box inline size the fragment will have. |
BlockSize
LayoutApiObjects.csGets the border-box block size the fragment will have.
public double BlockSize { get; }Property value
See also
InlineSize
LayoutApiObjects.csGets the border-box inline size the fragment will have.
public double InlineSize { get; }