Reference
Definition
命名空間: Microsoft.UI
若提供的 displayID 有效且系統有代表顯示顯示器的 ,則會取得與指定 HMONITOR 對應的顯示監視器句柄。
public static IntPtr GetMonitorFromDisplayId(DisplayId displayId);
Parameters
displayId
DisplayId
顯示的識別項。
Returns
如果提供的 displayId 有效且系統有一個代表顯示器的 HMONITOR, 則該顯示螢幕的 handle 對應於指定的 displayId。 否則為 null。
適用對象
| Product | 引進於 |
|---|---|
| WinUI 3 | Windows 應用程式 SDK 1.0 |