ResizeObserverEntry Class

The sizes of an observed element when its size changed (https://drafts.csswg.org/resize-observer-1/#resize-observer-entry-interface).

public sealed class ResizeObserverEntry

Properties

NameDescription
BorderBoxSizeGets the sizes of the border box of the element, one per fragment.
ContentBoxSizeGets the sizes of the content box of the element, one per fragment.
ContentRectGets the content rect of the element (https://drafts.csswg.org/resize-observer-1/#content-rect): the size of its content box, at the position of its padding top and padding left.
DevicePixelContentBoxSizeGets the sizes of the content box of the element in integral device pixels, one per fragment.
TargetGets the element whose size changed.

BorderBoxSize

ResizeObserver.cs

Gets the sizes of the border box of the element, one per fragment.

public IReadOnlyList<ResizeObserverSize> BorderBoxSize { get; }

ContentBoxSize

ResizeObserver.cs

Gets the sizes of the content box of the element, one per fragment.

public IReadOnlyList<ResizeObserverSize> ContentBoxSize { get; }

Gets the content rect of the element (https://drafts.csswg.org/resize-observer-1/#content-rect): the size of its content box, at the position of its padding top and padding left.

public DomRectReadOnly ContentRect { get; }

DevicePixelContentBoxSize

ResizeObserver.cs

Gets the sizes of the content box of the element in integral device pixels, one per fragment.

public IReadOnlyList<ResizeObserverSize> DevicePixelContentBoxSize { get; }

Gets the element whose size changed.

public Element Target { get; }