Class MonitorInfo
Contains information about a display monitor.
Inheritance
System.Object
MonitorInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
public class MonitorInfo
Properties
| Improve this Doc View SourceName
Gets the name of the display.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
RectMonitor
Gets the display monitor rectangle, expressed in virtual-screen coordinates.
Declaration
public Rect RectMonitor { get; }
Property Value
Type | Description |
---|---|
Rect |
Remarks
note
If the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
RectWork
Gets the work area rectangle of the display monitor, expressed in virtual-screen coordinates.
Declaration
public Rect RectWork { get; }
Property Value
Type | Description |
---|---|
Rect |
Remarks
note
If the monitor is not the primary display monitor, some of the rectangle's coordinates may be negative values.
Methods
| Improve this Doc View SourceGetDisplayMonitors()
Gets the display monitors (including invisible pseudo-monitors associated with the mirroring drivers).
Declaration
public static IList<MonitorInfo> GetDisplayMonitors()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<MonitorInfo> | A list of display monitors |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()