Class LayoutViewport
Layout viewport position and dimensions.
public sealed record LayoutViewport : IEquatable<LayoutViewport>
- Inheritance
-
LayoutViewport
- Implements
- Inherited Members
Constructors
LayoutViewport(long, long, long, long)
Layout viewport position and dimensions.
public LayoutViewport(long PageX, long PageY, long ClientWidth, long ClientHeight)
Parameters
PageXlongHorizontal offset relative to the document (CSS pixels).
PageYlongVertical offset relative to the document (CSS pixels).
ClientWidthlongWidth (CSS pixels), excludes scrollbar if present.
ClientHeightlongHeight (CSS pixels), excludes scrollbar if present.
Properties
ClientHeight
Height (CSS pixels), excludes scrollbar if present.
public long ClientHeight { get; init; }
Property Value
ClientWidth
Width (CSS pixels), excludes scrollbar if present.
public long ClientWidth { get; init; }
Property Value
PageX
Horizontal offset relative to the document (CSS pixels).
public long PageX { get; init; }
Property Value
PageY
Vertical offset relative to the document (CSS pixels).
public long PageY { get; init; }