MonitorInfo Structure

Contains information about a display monitor.

The GetMonitorInfo(IntPtr, MonitorInfo) function stores information into a MonitorInfo structure or a MonitorInfoEx structure.

The MonitorInfo structure is a subset of the MonitorInfoEx structure. The MonitorInfoEx structure adds a string member to contain a name for the display monitor.

Definition

Namespace: DevCase.Win32.Structures
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public struct MonitorInfo
Inheritance
Object    ValueType    MonitorInfo

Remarks

Constructors

MonitorInfo Initializes a new instance of the MonitorInfo structure.

Methods

Equals Indicates whether this instance and a specified object are equal.
(Inherited from ValueType)
GetHashCode Returns the hash code for this instance.
(Inherited from ValueType)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns the fully qualified type name of this instance.
(Inherited from ValueType)

Fields

Bounds A NativeRectangle structure that specifies the display monitor rectangle, expressed in virtual-screen coordinates.

Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

Flags The attributes of the display monitor.
SizeOfStruct The size, in bytes, of the structure.

This member must be set to Marshal.SizeOf(Of MonitorInfo) before calling the GetMonitorInfo(IntPtr, MonitorInfo) function. Doing so lets the function determine the type of structure you are passing to it.

WorkingArea A NativeRectangle structure that specifies the work area rectangle of the display monitor that can be used by applications, expressed in virtual-screen coordinates.

Windows uses this rectangle to maximize an application on the monitor. The rest of the area in Bounds contains system windows such as the task bar and side bars.

Note that if the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also