Class VisualViewport
Visual viewport position, dimensions, and scale.
public sealed class VisualViewport
- Inheritance
-
VisualViewport
- Inherited Members
Properties
ClientHeight
Height (CSS pixels), excludes scrollbar if present.
[JsonPropertyName("clientHeight")]
public double ClientHeight { get; set; }
Property Value
ClientWidth
Width (CSS pixels), excludes scrollbar if present.
[JsonPropertyName("clientWidth")]
public double ClientWidth { get; set; }
Property Value
OffsetX
Horizontal offset relative to the layout viewport (CSS pixels).
[JsonPropertyName("offsetX")]
public double OffsetX { get; set; }
Property Value
OffsetY
Vertical offset relative to the layout viewport (CSS pixels).
[JsonPropertyName("offsetY")]
public double OffsetY { get; set; }
Property Value
PageX
Horizontal offset relative to the document (CSS pixels).
[JsonPropertyName("pageX")]
public double PageX { get; set; }
Property Value
PageY
Vertical offset relative to the document (CSS pixels).
[JsonPropertyName("pageY")]
public double PageY { get; set; }
Property Value
Scale
Scale relative to the ideal viewport (size at width=device-width).
[JsonPropertyName("scale")]
public double Scale { get; set; }
Property Value
Zoom
Page zoom factor (CSS to device independent pixels ratio).
[JsonPropertyName("zoom")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? Zoom { get; set; }