元編程參考文件

桌面視窗

15 個節點

本頁內容 15

桌面視窗

函數

A window somewhere on the desktop, and which process owns it.

簽名
桌面視窗 -> Desktop Window
    控制代碼: IntPtr
    標題: 文字
    程序 ID: 整數
    程序名稱: 文字
    邊界: Screen Rectangle
    顯示狀態: Window Display State
DesktopWindow DesktopWindow(
    nint Handle,
    string Title,
    int ProcessId,
    string ProcessName,
    ScreenRectangle Bounds,
    WindowDisplayState DisplayState)

參數

名稱型別預設值說明
控制代碼IntPtr—The platform's identifier: an HWND on Windows, an X11 window id, a CGWindowID.
標題文字—The window's title bar text. Empty where the platform will not report it.
程序 ID整數—The owning process, or 0 where unknown.
程序名稱文字—The owning process's name without extension, or empty where unknown.
邊界Screen Rectangle—Where it sits, in virtual-desktop coordinates. A window's bounds are not where it will reappear: Windows parks one at (-32000, -32000) with the size of its title bar, which is what enumeration observes and reports. Restore it first if the bounds matter.
顯示狀態Window Display State—Minimised, maximised or ordinary.

返回

桌面視窗Desktop Window
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

分解

函數

此節點沒有文件說明。

簽名
分解(Desktop Window: Desktop Window) -> (控制代碼: IntPtr, 標題: 文字, 程序 ID: 整數, 程序名稱: 文字, 邊界: Screen Rectangle, 顯示狀態: Window Display State)
void Deconstruct(
    DesktopWindow Desktop Window,
    out nint Handle,
    out string Title,
    out int ProcessId,
    out string ProcessName,
    out ScreenRectangle Bounds,
    out WindowDisplayState DisplayState)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

控制代碼IntPtr
標題文字
程序 ID整數
程序名稱文字
邊界Screen Rectangle
顯示狀態Window Display State
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

相等

函數

此節點沒有文件說明。

過載 1/2

簽名
相等(Desktop Window: Desktop Window, 物件: 任意) -> 真否
bool Equals(DesktopWindow Desktop Window, object obj)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—
物件任意—

返回

結果真否

過載 2/2

簽名
相等 -> 真否
    Desktop Window: Desktop Window
    另一個: Desktop Window
bool Equals(DesktopWindow Desktop Window, DesktopWindow other)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—
另一個Desktop Window—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

邊界

函數

Where it sits, in virtual-desktop coordinates. A window's bounds are not where it
will reappear: Windows parks one at (-32000, -32000) with the size of its title bar, which is what
enumeration observes and reports. Restore it first if the bounds matter.

簽名
邊界(Desktop Window: Desktop Window) -> Screen Rectangle
ScreenRectangle Bounds(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果Screen Rectangle
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

顯示狀態

函數

Minimised, maximised or ordinary.

簽名
顯示狀態(Desktop Window: Desktop Window) -> Window Display State
WindowDisplayState DisplayState(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果Window Display State
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

是否存在

函數

False for DesktopWindow.None. A caller checks this rather than comparing handles to zero.

簽名
是否存在(Desktop Window: Desktop Window) -> 真否
bool Exists(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

控制代碼

函數

The platform's identifier: an HWND on Windows, an X11 window id, a CGWindowID.

簽名
控制代碼(Desktop Window: Desktop Window) -> IntPtr
nint Handle(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果IntPtr
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

程序 ID

函數

The owning process, or 0 where unknown.

簽名
程序 ID(Desktop Window: Desktop Window) -> 整數
int ProcessId(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

程序名稱

函數

The owning process's name without extension, or empty where unknown.

簽名
程序名稱(Desktop Window: Desktop Window) -> 文字
string ProcessName(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

標題

函數

The window's title bar text. Empty where the platform will not report it.

簽名
標題(Desktop Window: Desktop Window) -> 文字
string Title(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

取得雜湊碼

函數

此節點沒有文件說明。

簽名
取得雜湊碼(Desktop Window: Desktop Window) -> 整數
int GetHashCode(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果整數
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

轉為文字

函數

Reads as a window rather than as a record's field list, for a log line or a status bar.

簽名
轉為文字(Desktop Window: Desktop Window) -> 文字
string ToString(DesktopWindow Desktop Window)

參數

名稱型別預設值說明
Desktop WindowDesktop Window—

返回

結果文字
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
事件 例程 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

無視窗

函數

No window: what "nothing is in front" and "nothing matched" both report.

簽名
無視窗() -> Desktop Window
DesktopWindow None()

返回

結果Desktop Window
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

相等運算

函數

此節點沒有文件說明。

簽名
相等運算(左側: Desktop Window, 右側: Desktop Window) -> 真否
bool op_Equality(DesktopWindow left, DesktopWindow right)

參數

名稱型別預設值說明
左側Desktop Window—
右側Desktop Window—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化

不等運算

函數

此節點沒有文件說明。

簽名
不等運算(左側: Desktop Window, 右側: Desktop Window) -> 真否
bool op_Inequality(DesktopWindow left, DesktopWindow right)

參數

名稱型別預設值說明
左側Desktop Window—
右側Desktop Window—

返回

結果真否
所屬發行版
元編程(教育版)元編程(專業版)
可用的圖種類
資料流 函數 事件 例程 藍圖 狀態機狀態
宣告於
桌面視窗
所屬包
桌面自動化