Struct Monitor
Contains information about monitors connected to the system.
public struct Monitor
- Inherited Members
Constructors
Monitor(Rectangle, VideoMode, VideoMode[])
Create a new monitor. Yes. One will just suddenly appear on your desk.
public Monitor(Rectangle bounds, VideoMode currentMode, VideoMode[] supportedModes)
Parameters
bounds
RectangleThe bounds of the monitor, in pixels.
currentMode
VideoModeThe VideoMode of the monitor.
supportedModes
VideoMode[]All VideoModes supported by the monitor.
Fields
Bounds
The bounds of the monitor, in pixels.
public readonly Rectangle Bounds
Field Value
- Rectangle
- Contains information about monitors connected to the system.
ConnectedMonitors
Contains all monitors currently connected to the system.
public static readonly Monitor[] ConnectedMonitors
Field Value
- Monitor[]
- Contains information about monitors connected to the system.
CurrentMode
The VideoMode of the monitor.
public readonly VideoMode CurrentMode
Field Value
- VideoMode
- Contains information about monitors connected to the system.
SupportedModes
All VideoModes supported by the monitor.
public readonly VideoMode[] SupportedModes
Field Value
- VideoMode[]
- Contains information about monitors connected to the system.
Properties
PrimaryMonitor
The primary monitor connected to the system.
public static Monitor PrimaryMonitor { get; }
Property Value
- Monitor
- Contains information about monitors connected to the system.