Struct InfiniMonitor
- Namespace
- InfiniFrame
- Assembly
- InfiniFrame.Shared.dll
Represents information about a monitor.
public readonly record struct InfiniMonitor : IEquatable<InfiniMonitor>
- Implements
- Inherited Members
Constructors
InfiniMonitor(NativeRect, NativeRect, double)
Initializes a new instance of the InfiniMonitor struct using native structures.
public InfiniMonitor(NativeRect monitor, NativeRect work, double scale)
Parameters
monitorNativeRectThe area of monitor as NativeRect
workNativeRectThe working area as NativeRect
scaledoubleThe scale factor of the monitor.
InfiniMonitor(Rectangle, Rectangle, double)
Represents information about a monitor.
public InfiniMonitor(Rectangle MonitorArea, Rectangle WorkArea, double Scale)
Parameters
MonitorAreaRectangleThe full area of the monitor
WorkAreaRectangleThe working area of the monitor excluding taskbars, docked windows, and docked tool bars.
ScaledoubleThe scale factor of the monitor. The standard value is 1.0.
Properties
MonitorArea
The full area of the monitor
public Rectangle MonitorArea { get; init; }
Property Value
Scale
The scale factor of the monitor. The standard value is 1.0.
public double Scale { get; init; }
Property Value
WorkArea
The working area of the monitor excluding taskbars, docked windows, and docked tool bars.
public Rectangle WorkArea { get; init; }