Table of Contents

Class ScreenInfo

Namespace
Selenium.WebDriver.BiDi.Cdp.Emulation
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.

public sealed record ScreenInfo : IEquatable<ScreenInfo>
Inheritance
ScreenInfo
Implements
Inherited Members

Constructors

ScreenInfo(long, long, long, long, long, long, long, long, double, ScreenOrientation, long, bool, bool, bool, string, ScreenId)

Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.

public ScreenInfo(long Left, long Top, long Width, long Height, long AvailLeft, long AvailTop, long AvailWidth, long AvailHeight, double DevicePixelRatio, ScreenOrientation Orientation, long ColorDepth, bool IsExtended, bool IsInternal, bool IsPrimary, string Label, ScreenId Id)

Parameters

Left long

Offset of the left edge of the screen.

Top long

Offset of the top edge of the screen.

Width long

Width of the screen.

Height long

Height of the screen.

AvailLeft long

Offset of the left edge of the available screen area.

AvailTop long

Offset of the top edge of the available screen area.

AvailWidth long

Width of the available screen area.

AvailHeight long

Height of the available screen area.

DevicePixelRatio double

Specifies the screen's device pixel ratio.

Orientation ScreenOrientation

Specifies the screen's orientation.

ColorDepth long

Specifies the screen's color depth in bits.

IsExtended bool

Indicates whether the device has multiple screens.

IsInternal bool

Indicates whether the screen is internal to the device or external, attached to the device.

IsPrimary bool

Indicates whether the screen is set as the the operating system primary screen.

Label string

Specifies the descriptive label for the screen.

Id ScreenId

Specifies the unique identifier of the screen.

Properties

AvailHeight

Height of the available screen area.

public long AvailHeight { get; init; }

Property Value

long

AvailLeft

Offset of the left edge of the available screen area.

public long AvailLeft { get; init; }

Property Value

long

AvailTop

Offset of the top edge of the available screen area.

public long AvailTop { get; init; }

Property Value

long

AvailWidth

Width of the available screen area.

public long AvailWidth { get; init; }

Property Value

long

ColorDepth

Specifies the screen's color depth in bits.

public long ColorDepth { get; init; }

Property Value

long

DevicePixelRatio

Specifies the screen's device pixel ratio.

public double DevicePixelRatio { get; init; }

Property Value

double

Height

Height of the screen.

public long Height { get; init; }

Property Value

long

Id

Specifies the unique identifier of the screen.

public ScreenId Id { get; init; }

Property Value

ScreenId

IsExtended

Indicates whether the device has multiple screens.

public bool IsExtended { get; init; }

Property Value

bool

IsInternal

Indicates whether the screen is internal to the device or external, attached to the device.

public bool IsInternal { get; init; }

Property Value

bool

IsPrimary

Indicates whether the screen is set as the the operating system primary screen.

public bool IsPrimary { get; init; }

Property Value

bool

Label

Specifies the descriptive label for the screen.

public string Label { get; init; }

Property Value

string

Left

Offset of the left edge of the screen.

public long Left { get; init; }

Property Value

long

Orientation

Specifies the screen's orientation.

public ScreenOrientation Orientation { get; init; }

Property Value

ScreenOrientation

Top

Offset of the top edge of the screen.

public long Top { get; init; }

Property Value

long

Width

Width of the screen.

public long Width { get; init; }

Property Value

long