Screen Class
The screen of the output device (https://drafts.csswg.org/cssom-view/#the-screen-interface): the size of the viewport of the top-level browsing context (see ViewportOptions), or 0 when the window has no browsing context.
public sealed class ScreenProperties
| Name | Description |
|---|---|
| AvailHeight | Gets the available height of the screen (https://drafts.csswg.org/cssom-view/#dom-screen-availheight): the height of the screen. |
| AvailWidth | Gets the available width of the screen (https://drafts.csswg.org/cssom-view/#dom-screen-availwidth): the width of the screen. |
| ColorDepth | Gets the number of bits used to represent the colors (https://drafts.csswg.org/cssom-view/#dom-screen-colordepth): 24, as recommended when it is unknown. |
| Height | Gets the height of the screen in CSS pixels (https://drafts.csswg.org/cssom-view/#dom-screen-height). |
| Orientation | Gets the orientation of the screen (https://w3c.github.io/screen-orientation/#extensions-to-the-screen-interface). |
| PixelDepth | Gets the number of bits used to represent the colors (https://drafts.csswg.org/cssom-view/#dom-screen-pixeldepth): Screen.ColorDepth. |
| Width | Gets the width of the screen in CSS pixels (https://drafts.csswg.org/cssom-view/#dom-screen-width). |
AvailHeight
CssomView.csGets the available height of the screen (https://drafts.csswg.org/cssom-view/#dom-screen-availheight): the height of the screen.
public int AvailHeight { get; }AvailWidth
CssomView.csGets the available width of the screen (https://drafts.csswg.org/cssom-view/#dom-screen-availwidth): the width of the screen.
public int AvailWidth { get; }ColorDepth
CssomView.csGets the number of bits used to represent the colors (https://drafts.csswg.org/cssom-view/#dom-screen-colordepth): 24, as recommended when it is unknown.
public uint ColorDepth { get; }Height
CssomView.csGets the height of the screen in CSS pixels (https://drafts.csswg.org/cssom-view/#dom-screen-height).
public int Height { get; }Orientation
ScreenOrientation.csGets the orientation of the screen (https://w3c.github.io/screen-orientation/#extensions-to-the-screen-interface).
public ScreenOrientation Orientation { get; }Property value
See also
PixelDepth
CssomView.csGets the number of bits used to represent the colors (https://drafts.csswg.org/cssom-view/#dom-screen-pixeldepth): Screen.ColorDepth.
public uint PixelDepth { get; }Width
CssomView.csGets the width of the screen in CSS pixels (https://drafts.csswg.org/cssom-view/#dom-screen-width).
public int Width { get; }