Class Viewport
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalViewport interface of the {{domxref("Viewport Segments API", "Viewport Segments API", "", "nocode")}} represents the device's viewport.
[Value("Viewport")]
public class Viewport
- Inheritance
-
Viewport
- Inherited Members
Remarks
-Using the Viewport Segments API
-Viewport Segments API
-CSSOM view API
-Device Posture API
-Origin trial for Foldable APIs via developer.chrome.com (2024)
Constructors
Viewport()
public Viewport()
Properties
Segments
NOTE
Experimentalsegments read-only property of the Viewport interface returns an array of DOMRect objects representing the position and dimensions of each viewport segment within the overall display.
[Value("segments")]
public DOMRect[]? Segments { get; }
Property Value
Remarks
-Viewport Segments API
-CSSOM view API
-Origin trial for Foldable APIs via developer.chrome.com (2024)