Interface IWindow
- Namespace
- Whim
- Assembly
- Whim.dll
Represents a single window.
public interface IWindow
Properties
Handle
The handle of the window.
HWND Handle { get; }
Property Value
IsFocused
Indicates whether the window is focused.
bool IsFocused { get; }
Property Value
IsMaximized
Indicates whether the window is maximised.
bool IsMaximized { get; }
Property Value
IsMinimized
Indiciates whether the window is minimized.
bool IsMinimized { get; }
Property Value
IsUwp
Whether we think that the window is a UWP app.
bool IsUwp { get; }
Property Value
ProcessFileName
The file name of the module.
For example,
SnippingTool.exe
.string? ProcessFileName { get; }
Property Value
ProcessFilePath
The fully qualified path that defines the location of the module.
string? ProcessFilePath { get; }
Property Value
ProcessId
The process ID of the window.
int ProcessId { get; }
Property Value
Rectangle
The containing rectangle for the window.
IRectangle<int> Rectangle { get; }
Property Value
Title
The title of the window.
string Title { get; }
Property Value
WindowClass
The name of the class to which the window belongs.
string WindowClass { get; }
Property Value
Methods
BringToTop()
Brings the window to the top.
void BringToTop()
Close()
Quits the window.
void Close()
Focus()
Forces the window to the foreground and to be focused.
void Focus()
GetIcon()
Gets the icon of the window.
BitmapImage? GetIcon()
Returns
Hide()
Hides this window.
void Hide()
Restore()
Activates and displays the window. If the window is minimized, maximized, or arranged,
the system restores it to its original size and position
void Restore()
ShowMaximized()
Activates the window and displays it as a maximized window.
void ShowMaximized()
ShowMinimized()
Activates the window and displays it as a minimized window.
void ShowMinimized()
ShowNormal()
Displays a window in its most recent size and position. The window is not activated.
void ShowNormal()