Volume Control
Application-specific hotkeys for Windows
|
Extension methods for the Window class and other helper functions for manipulating screen space coordinates and positioning windows. More...
Static Public Member Functions | |
static Point | GetPos (this Window wnd) |
Gets the position of the window. More... | |
static void | SetPos (this Window wnd, Point point) |
Sets the position of the window to a given point. More... | |
static Point | GetPosAtCenterPoint (this Window wnd) |
Gets the centerpoint of the window. More... | |
static void | SetPosAtCenterPoint (this Window wnd, Point point) |
Sets the position of the window, using the window's center as an origin point. More... | |
static Point | GetPosAtCorner (this Window wnd, EScreenCorner corner) |
Gets the position of the window at the specified corner . More... | |
static void | SetPosAtCorner (this Window wnd, EScreenCorner corner, Point point) |
Sets the position of the window, using the specified corner as an origin point. More... | |
static Point | GetPosAtCurrentCorner (this Window wnd) |
Gets the position of the corner of the window that is closest to the screen edge. More... | |
static System.Windows.Forms.Screen | GetDefaultScreen () |
Gets the primary screen. More... | |
static System.Windows.Forms.Screen | GetCurrentScreen (this Window wnd) |
Gets the screen that contains the centerpoint of the window. More... | |
static Point | GetCurrentScreenCenterPoint (this Window wnd) |
Gets the centerpoint of the screen where the window is currently located. More... | |
static EScreenCorner | GetCurrentScreenCorner (this Window wnd) |
Gets the closest EScreenCorner to the window's centerpoint. More... | |
static System.Windows.Forms.Screen | GetClosestScreenFromPoint (Point point) |
Gets the screen that contains the specified point . More... | |
static Point | GetScreenCenterPoint (System.Windows.Forms.Screen screen) |
Gets the centerpoint of the specified screen . More... | |
static EScreenCorner | GetClosestScreenCornerFromPoint (System.Windows.Forms.Screen screen, Point point) |
Gets the corner of the given screen that is closest to the specified point . More... | |
static EScreenCorner | GetClosestScreenCornerFromPoint (Point pos) |
static bool | ContainsPoint (this System.Windows.Forms.Screen screen, Point point) |
Gets whether the screen boundaries contain the specified point or not. More... | |
Extension methods for the Window class and other helper functions for manipulating screen space coordinates and positioning windows.
|
static |
Gets whether the screen boundaries contain the specified point or not.
screen | The System.Windows.Forms.Screen instance to use. |
point | An x/y coordinate specifying a point on the screen . |
true
when the screen contains the point ; otherwise false
.
|
static |
This calls GetClosestScreenCornerFromPoint(System.Windows.Forms.Screen, Point) internally by automatically determining the screen to use based on the given pos .
|
static |
Gets the corner of the given screen that is closest to the specified point .
screen | The System.Windows.Forms.Screen instance to use. |
point | An x/y coordinate specifying a point on the screen . |
References VolumeControl.WPF.Extensions.WindowPositioningExtensions.GetScreenCenterPoint().
|
static |
Gets the screen that contains the specified point .
point | A Point specifying the x/y coordinate of a point on the desktop. |
|
static |
Gets the screen that contains the centerpoint of the window.
wnd | (Implicit) A Window instance. |
|
static |
Gets the centerpoint of the screen where the window is currently located.
wnd | (Implicit) A Window instance. |
|
static |
Gets the closest EScreenCorner to the window's centerpoint.
wnd | (Implicit) A Window instance. |
|
static |
Gets the primary screen.
|
static |
Gets the position of the window.
wnd | (Implicit) A Window instance. |
|
static |
Gets the centerpoint of the window.
wnd | (Implicit) A Window instance. |
|
static |
Gets the position of the window at the specified corner .
wnd | (Implicit) A Window instance. |
corner | The corner to check |
InvalidEnumArgumentException | Invalid EScreenCorner enumeration. |
|
static |
Gets the position of the corner of the window that is closest to the screen edge.
wnd | (Implicit) A Window instance. |
|
static |
Gets the centerpoint of the specified screen .
screen | A System.Windows.Forms.Screen instance to get the centerpoint of. |
Referenced by VolumeControl.WPF.Extensions.WindowPositioningExtensions.GetClosestScreenCornerFromPoint().
|
static |
Sets the position of the window to a given point.
wnd | (Implicit) A Window instance. |
point | A Point specifying the x/y coordinates to position the window's origin point (top-left corner) at. |
|
static |
Sets the position of the window, using the window's center as an origin point.
wnd | (Implicit) A Window instance. |
point | The absolute x/y coordinates of the target position. |
|
static |
Sets the position of the window, using the specified corner as an origin point.
wnd | (Implicit) A Window instance. |
corner | The corner of the window to use as an origin point when setting the window's position. |
point | The absolute x/y coordinates of the target position. |