Class ScreenInfo
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
LeftlongOffset of the left edge of the screen.
ToplongOffset of the top edge of the screen.
WidthlongWidth of the screen.
HeightlongHeight of the screen.
AvailLeftlongOffset of the left edge of the available screen area.
AvailToplongOffset of the top edge of the available screen area.
AvailWidthlongWidth of the available screen area.
AvailHeightlongHeight of the available screen area.
DevicePixelRatiodoubleSpecifies the screen's device pixel ratio.
OrientationScreenOrientationSpecifies the screen's orientation.
ColorDepthlongSpecifies the screen's color depth in bits.
IsExtendedboolIndicates whether the device has multiple screens.
IsInternalboolIndicates whether the screen is internal to the device or external, attached to the device.
IsPrimaryboolIndicates whether the screen is set as the the operating system primary screen.
LabelstringSpecifies the descriptive label for the screen.
IdScreenIdSpecifies the unique identifier of the screen.
Properties
AvailHeight
Height of the available screen area.
public long AvailHeight { get; init; }
Property Value
AvailLeft
Offset of the left edge of the available screen area.
public long AvailLeft { get; init; }
Property Value
AvailTop
Offset of the top edge of the available screen area.
public long AvailTop { get; init; }
Property Value
AvailWidth
Width of the available screen area.
public long AvailWidth { get; init; }
Property Value
ColorDepth
Specifies the screen's color depth in bits.
public long ColorDepth { get; init; }
Property Value
DevicePixelRatio
Specifies the screen's device pixel ratio.
public double DevicePixelRatio { get; init; }
Property Value
Height
Height of the screen.
public long Height { get; init; }
Property Value
Id
Specifies the unique identifier of the screen.
public ScreenId Id { get; init; }
Property Value
IsExtended
Indicates whether the device has multiple screens.
public bool IsExtended { get; init; }
Property Value
IsInternal
Indicates whether the screen is internal to the device or external, attached to the device.
public bool IsInternal { get; init; }
Property Value
IsPrimary
Indicates whether the screen is set as the the operating system primary screen.
public bool IsPrimary { get; init; }
Property Value
Label
Specifies the descriptive label for the screen.
public string Label { get; init; }
Property Value
Left
Offset of the left edge of the screen.
public long Left { get; init; }
Property Value
Orientation
Specifies the screen's orientation.
public ScreenOrientation Orientation { get; init; }
Property Value
Top
Offset of the top edge of the screen.
public long Top { get; init; }
Property Value
Width
Width of the screen.
public long Width { get; init; }