冰楓論壇

標題: [C#] 取得螢幕大小 [打印本頁]

作者: whitefox    時間: 2023-6-5 09:12
標題: [C#] 取得螢幕大小
目前主螢幕全尺寸
  1. double width = SystemParameters.PrimaryScreenWidth;
  2. double height = SystemParameters.PrimaryScreenHeight;
複製代碼
取得工作區尺寸(不含任務列)
  1. double width = SystemParameters.WorkArea.Width;
  2. double height = SystemParameters.WorkArea.Height;
複製代碼





歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓