顯示器資訊
13 個節點
本頁內容 13
顯示器資訊
函數One monitor: where it sits on the virtual desktop, and at what scale.
簽名
顯示器資訊 -> Display Info
名稱: 文字
邊界: Screen Rectangle
工作區域: Screen Rectangle
主顯示器: 真否
每英寸點數: 整數DisplayInfo DisplayInfo(
string Name,
ScreenRectangle Bounds,
ScreenRectangle WorkingArea,
bool IsPrimary,
int DotsPerInch)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 名稱 | 文字 | — | The platform's name for the device, for a caller that wants to show a list. |
| 邊界 | Screen Rectangle | — | The whole monitor, in virtual-desktop pixels. |
| 工作區域 | Screen Rectangle | — | What is left after the taskbar or dock. Equal to Bounds where the platform does not report one. |
| 主顯示器 | 真否 | — | The one whose top-left corner is the origin. |
| 每英寸點數 | 整數 | — | The monitor's effective DPI, 96 meaning unscaled. This is the number a caller needs to convert between a coordinate it computed from a screenshot and a coordinate this package will accept - see the coordinate-space section of the package README, because the answer differs per platform. |
返回
| 顯示器資訊 | Display Info |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
分解
函數此節點沒有文件說明。
簽名
分解(Display Info: Display Info) -> (名稱: 文字, 邊界: Screen Rectangle, 工作區域: Screen Rectangle, 主顯示器: 真否, 每英寸點數: 整數)
void Deconstruct(
DisplayInfo Display Info,
out string Name,
out ScreenRectangle Bounds,
out ScreenRectangle WorkingArea,
out bool IsPrimary,
out int DotsPerInch)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 名稱 | 文字 |
| 邊界 | Screen Rectangle |
| 工作區域 | Screen Rectangle |
| 主顯示器 | 真否 |
| 每英寸點數 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
相等
函數此節點沒有文件說明。
過載 1/2
簽名
相等(Display Info: Display Info, 物件: 任意) -> 真否
bool Equals(DisplayInfo Display Info, object obj)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — | |
| 物件 | 任意 | — |
返回
| 結果 | 真否 |
過載 2/2
簽名
相等(Display Info: Display Info, 另一個: Display Info) -> 真否
bool Equals(DisplayInfo Display Info, DisplayInfo other)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — | |
| 另一個 | Display Info | — |
返回
| 結果 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
邊界
函數The whole monitor, in virtual-desktop pixels.
簽名
邊界(Display Info: Display Info) -> Screen Rectangle
ScreenRectangle Bounds(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | Screen Rectangle |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
每英寸點數
函數The monitor's effective DPI, 96 meaning unscaled. This is the number a caller needs to convert
between a coordinate it computed from a screenshot and a coordinate this package will accept -
see the coordinate-space section of the package README, because the answer differs per platform.
簽名
每英寸點數(Display Info: Display Info) -> 整數
int DotsPerInch(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
是否為主顯示器
函數The one whose top-left corner is the origin.
簽名
是否為主顯示器(Display Info: Display Info) -> 真否
bool IsPrimary(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
名稱
函數The platform's name for the device, for a caller that wants to show a list.
簽名
名稱(Display Info: Display Info) -> 文字
string Name(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
縮放比例
函數96 DPI is 1.0; a monitor at 150% reports 1.5.
簽名
縮放比例(Display Info: Display Info) -> 數字
double ScaleFactor(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 數字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
工作區域
函數What is left after the taskbar or dock. Equal to Bounds where the platform does not report one.
簽名
工作區域(Display Info: Display Info) -> Screen Rectangle
ScreenRectangle WorkingArea(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | Screen Rectangle |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
取得雜湊碼
函數此節點沒有文件說明。
簽名
取得雜湊碼(Display Info: Display Info) -> 整數
int GetHashCode(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 整數 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
轉為文字
函數此節點沒有文件說明。
簽名
轉為文字(Display Info: Display Info) -> 文字
string ToString(DisplayInfo Display Info)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Display Info | Display Info | — |
返回
| 結果 | 文字 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
相等運算
函數此節點沒有文件說明。
簽名
相等運算(左側: Display Info, 右側: Display Info) -> 真否
bool op_Equality(DisplayInfo left, DisplayInfo right)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 左側 | Display Info | — | |
| 右側 | Display Info | — |
返回
| 結果 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化
不等運算
函數此節點沒有文件說明。
簽名
不等運算(左側: Display Info, 右側: Display Info) -> 真否
bool op_Inequality(DisplayInfo left, DisplayInfo right)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| 左側 | Display Info | — | |
| 右側 | Display Info | — |
返回
| 結果 | 真否 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 資料流 函數 事件 例程 藍圖 狀態機狀態
- 宣告於
- 顯示器資訊
- 所屬包
- 桌面自動化