Class ResizeObserverSize
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
The ResizeObserverSize interface of the Resize Observer API is used by the ResizeObserverEntry interface to access the box sizing properties of the element being observed.
[Value("ResizeObserverSize")]
public class ResizeObserverSize
- Inheritance
-
ResizeObserverSize
- Inherited Members
Remarks
NOTE
In multi-column layout, which is a fragmented context, the sizing returned by
ResizeObserverSizewill be the size of the first column.
Constructors
ResizeObserverSize()
public ResizeObserverSize()
Properties
BlockSize
The blockSize read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the block dimension. For boxes with a horizontal {{cssxref("writing-mode")}}, this is the vertical dimension, or height; if the writing-mode is vertical, this is the horizontal dimension, or width.
[Value("blockSize")]
public double BlockSize { get; }
Property Value
- double
A decimal representing the block size in pixels.
Remarks
NOTE
For more explanation of writing modes and block and inline dimensions, read Handling different text directions.
InlineSize
The inlineSize read-only property of the ResizeObserverSize interface returns the length of the observed element's border box in the inline dimension. For boxes with a horizontal {{cssxref("writing-mode")}}, this is the horizontal dimension, or width; if the writing-mode is vertical, this is the vertical dimension, or height.
[Value("inlineSize")]
public double InlineSize { get; }
Property Value
- double
A decimal representing the inline size in pixels.
Remarks
NOTE
For more explanation of writing modes and block and inline dimensions, read Handling different text directions.