![Xcalibur Systems LLC Logo](../icons/logo.png) |
MonitorHelperMonitorFromRect Method |
The MonitorFromRect function retrieves a handle to the display monitor that has the largest
area of intersection with a specified rectangle.
MonitorFromRect function Namespace: Xcalibur.NativeMethods.V2.MonitorsAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax[DllImportAttribute("user32.dll")]
public static IntPtr MonitorFromRect(
in Rectangle rectPointer,
uint flags
)
<DllImportAttribute("user32.dll">]
Public Shared Function MonitorFromRect (
ByRef rectPointer As Rectangle,
flags As UInteger
) As IntPtr
public:
[DllImportAttribute(L"user32.dll")]
static IntPtr MonitorFromRect(
[InAttribute] Rectangle% rectPointer,
unsigned int flags
)
[<DllImportAttribute("user32.dll")>]
static member MonitorFromRect :
rectPointer : Rectangle byref *
flags : uint32 -> IntPtr
Parameters
- rectPointer Rectangle
- The RECT pointer.
- flags UInt32
- The flags.
Return Value
IntPtr
See Also