Show / Hide Table of Contents

Class MonitorInfo

This class contains information about a monitor.

Inheritance
object
MonitorInfo
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: OpenTK.Windowing.Desktop
Assembly: OpenTK.Windowing.Desktop.dll
Syntax
public class MonitorInfo

Properties

ClientArea

Gets the client area of the monitor (in the virtual screen-space).

Declaration
public Box2i ClientArea { get; }
Property Value
Type Description
Box2i

CurrentVideoMode

The current VideoMode used by this monitor.

Declaration
public VideoMode CurrentVideoMode { get; }
Property Value
Type Description
VideoMode

Handle

Gets the internal handle to the monitor.

Declaration
public MonitorHandle Handle { get; }
Property Value
Type Description
MonitorHandle

HorizontalDpi

Gets the approximate dpi of the monitor on the horizontal axis.

Declaration
public float HorizontalDpi { get; }
Property Value
Type Description
float

HorizontalRawDpi

Gets the raw, calculated dpi of the monitor in the horizontal axis.

Declaration
public float HorizontalRawDpi { get; }
Property Value
Type Description
float
Remarks

This value may be incorrect. Use HorizontalDpi if possible.

HorizontalResolution

Gets the horizontal resolution of the monitor.

Declaration
public int HorizontalResolution { get; }
Property Value
Type Description
int

HorizontalScale

Gets the scale of the monitor in the horizontal axis.

Declaration
public float HorizontalScale { get; }
Property Value
Type Description
float

Name

Human-readable name for this monitor. Not guaranteed to be unique among the connected monitors.

Declaration
public string Name { get; }
Property Value
Type Description
string

PhysicalHeight

Gets the physical height of the monitor in milimeters.

Declaration
public int PhysicalHeight { get; }
Property Value
Type Description
int

PhysicalWidth

Gets the physical width of the monitor in milimeters.

Declaration
public int PhysicalWidth { get; }
Property Value
Type Description
int

SupportedVideoModes

A list of supported video modes for this monitor.

Declaration
public IReadOnlyList<VideoMode> SupportedVideoModes { get; }
Property Value
Type Description
IReadOnlyList<VideoMode>

VerticalDpi

Gets the approximate dpi of the monitor on the vertical axis.

Declaration
public float VerticalDpi { get; }
Property Value
Type Description
float

VerticalRawDpi

Gets the raw, calculated dpi of the monitor in the vertical axis.

Declaration
public float VerticalRawDpi { get; }
Property Value
Type Description
float
Remarks

This value may be incorrect. Use HorizontalDpi if possible.

VerticalResolution

Gets the vertical resolution of the monitor.

Declaration
public int VerticalResolution { get; }
Property Value
Type Description
int

VerticalScale

Gets the scale of the monitor in the vertical axis.

Declaration
public float VerticalScale { get; }
Property Value
Type Description
float

WorkArea

Get the work area of the monitor. The work area is defined as the area of the monitor not occluded by the operating system task bar where present. If no task bar exists then the work area is the monitor resolution in screen coordinates.

Declaration
public Box2i WorkArea { get; }
Property Value
Type Description
Box2i
In this article
Back to top Generated by DocFX