Win32Interop.GetMonitorFromDisplayId(DisplayId) method
Reference
Definition
Namespace: Microsoft.UI
Gets the display monitor handle that corresponds to the specified displayId, if the provided displayId is valid and the system has an HMONITOR
that represents the display monitor.
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
Parameters
displayId
DisplayId
The identifier for the display.
Returns
The display monitor handle that corresponds to the specified displayId, if the provided displayId is valid and the system has an HMONITOR
that represents the display monitor. Otherwise, null
.
Applies to
Product | Introduced in |
---|---|
WinUI 3 | Windows App SDK 1.0 |
See also
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.
Windows developer
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru