Class ViewPortOptions
- Namespace
- PuppeteerSharp
- Assembly
- PuppeteerSharp.dll
View port options used on SetViewportAsync(ViewPortOptions).
public record ViewPortOptions : IEquatable<ViewPortOptions>
- Inheritance
-
ViewPortOptions
- Implements
Properties
Default
Default Viewport.
public static ViewPortOptions Default { get; }
Property Value
DeviceScaleFactor
Gets or sets the device scale factor.
public double DeviceScaleFactor { get; set; }
Property Value
- double
Specify device scale factor (can be thought of as dpr). Defaults to 1.
HasTouch
Gets or sets if viewport supports touch events.
public bool HasTouch { get; set; }
Property Value
- bool
Specifies if viewport supports touch events. Defaults to
false
.
Height
Gets or sets the height.
public int Height { get; set; }
Property Value
- int
The page height in pixels.
IsLandscape
Gets or sets if viewport is in landscape mode.
public bool IsLandscape { get; set; }
Property Value
- bool
Specifies if viewport is in landscape mode. Defaults to
false
.
IsMobile
Gets or sets whether the meta viewport tag is taken into account.
public bool IsMobile { get; set; }
Property Value
- bool
Whether the meta viewport tag is taken into account. Defaults to
false
.
Width
Gets or sets the width.
public int Width { get; set; }
Property Value
- int
The page width in pixels.