Click or drag to resize

MonitorInfo Class

Provides properties and methods for getting information about the monitor
Inheritance Hierarchy
SystemObject
  CauldronMonitorInfo

Namespace:  Cauldron
Assembly:  Cauldron.Win32.MonitorInfo (in Cauldron.Win32.MonitorInfo.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public static class MonitorInfo

The MonitorInfo type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberMonitorCount
Gets the count of the monitor connected to the device
Public propertyStatic memberPrimaryMonitorBounds
Gets the bounds of the primary monitor
Top
Methods
  NameDescription
Public methodStatic memberGetCurrentOrientation
Returns the orientation of the current view
Public methodStatic memberGetDpi
Gets the dpi of the display. If the window is not on any monitor the primary monitor's dpi is returned instead.

On Windows version lower than 8, the dpi is the same for all monitors.

Public methodStatic memberGetMonitorBounds
Gets the bounds of the monitor that contains the defined window
Public methodStatic memberWindowIsInAnyMonitor
Determines if the window is shown in any of the monitors.
Public methodStatic memberWmGetMinMaxInfo
Sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size.
Top
See Also