IntersectionObserverEntryInit Class

The values of an IntersectionObserverEntry (https://w3c.github.io/IntersectionObserver/#dictdef-intersectionobserverentryinit).

public sealed class IntersectionObserverEntryInit

Constructors

NameDescription
IntersectionObserverEntryInit()

IntersectionObserverEntryInit()

  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public IntersectionObserverEntryInit()

No documentation is available.

Properties

NameDescription
BoundingClientRectGets or sets the bounding box of the target.
IntersectionRatioGets or sets the ratio of the intersection area to the area of the bounding box of the target.
IntersectionRectGets or sets the intersection of the target with the root.
IsIntersectingGets or sets whether the target intersects the root.
IsVisibleGets or sets whether the target is visible.
RootBoundsGets or sets the root intersection rectangle, or null.
TargetGets or sets the target.
TimeGets or sets the time of the observation.

BoundingClientRect

IntersectionObserver.cs

Gets or sets the bounding box of the target.

public required DomRectInit BoundingClientRect { get; init; }

IntersectionRatio

IntersectionObserver.cs

Gets or sets the ratio of the intersection area to the area of the bounding box of the target.

public required double IntersectionRatio { get; init; }

IntersectionRect

IntersectionObserver.cs

Gets or sets the intersection of the target with the root.

public required DomRectInit IntersectionRect { get; init; }

Gets or sets whether the target intersects the root.

public required bool IsIntersecting { get; init; }

Gets or sets whether the target is visible.

public required bool IsVisible { get; init; }

Gets or sets the root intersection rectangle, or null.

public required DomRectInit? RootBounds { get; init; }

Gets or sets the target.

public required Element Target { get; init; }

Gets or sets the time of the observation.

public required double Time { get; init; }