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