C# Class WindowsDesktop.WindowExtensions

Mostra file Open project: Grabacr07/VirtualDesktop

Public Methods

Method Description
GetCurrentDesktop ( this window ) : VirtualDesktop

Returns a virtual desktop that window is located.

IsCurrentVirtualDesktop ( this window ) : bool

Determines whether the window is located over the virtual desktop that current displayed.

IsPinned ( this window ) : bool
MoveToDesktop ( this window, VirtualDesktop virtualDesktop ) : void

Move this window to specified virtual desktop.

Pin ( this window ) : void
SwitchAndMove ( this virtualDesktop, Window window ) : void
TogglePin ( this window ) : void
Unpin ( this window ) : void

Private Methods

Method Description
GetHandle ( this window ) : IntPtr

Method Details

GetCurrentDesktop() public static method

Returns a virtual desktop that window is located.
public static GetCurrentDesktop ( this window ) : VirtualDesktop
window this
return VirtualDesktop

IsCurrentVirtualDesktop() public static method

Determines whether the window is located over the virtual desktop that current displayed.
public static IsCurrentVirtualDesktop ( this window ) : bool
window this
return bool

IsPinned() public static method

public static IsPinned ( this window ) : bool
window this
return bool

MoveToDesktop() public static method

Move this window to specified virtual desktop.
public static MoveToDesktop ( this window, VirtualDesktop virtualDesktop ) : void
window this
virtualDesktop VirtualDesktop
return void

Pin() public static method

public static Pin ( this window ) : void
window this
return void

SwitchAndMove() public static method

public static SwitchAndMove ( this virtualDesktop, Window window ) : void
virtualDesktop this
window System.Windows.Window
return void

TogglePin() public static method

public static TogglePin ( this window ) : void
window this
return void

Unpin() public static method

public static Unpin ( this window ) : void
window this
return void