[This is preliminary documentation and is subject to change.]
Changes window position and size
Namespace: Tools.WindowsT.NativeTAssembly: Tools.Win (in Tools.Win.dll) Version: 1.5.3.38916 (1.5.3.38916)
Syntax
| C# |
|---|
public void Move( int Left, int Top, int Width, int Height, bool Repaint ) |
| Visual Basic |
|---|
Public Sub Move ( _ Left As Integer, _ Top As Integer, _ Width As Integer, _ Height As Integer, _ Repaint As Boolean _ ) |
| Visual C++ |
|---|
public: void Move( int Left, int Top, int Width, int Height, bool Repaint ) |
| F# |
|---|
member Move : Left:int * Top:int * Width:int * Height:int * Repaint:bool -> unit |
| JScript |
|---|
public function Move( Left : int, Top : int, Width : int, Height : int, Repaint : boolean ) |
Parameters
- Left
- Type: System..::..Int32
New x coordinate of left edge of the window in px
- Top
- Type: System..::..Int32
New y coordinate of top edge of the window in px
- Width
- Type: System..::..Int32
New width of window in px
- Height
- Type: System..::..Int32
New height of window in px
- Repaint
- Type: System..::..Boolean
Forces window to repaint its content after moving - default is true
Remarks
In some multi-monitor configurations the Top and Left can be negative and it does not necesarilly mean that window is positioned outside the desktop.
For top-level windows screen coordinates are used. For windows with Parent parent's coordinates are used.
Exceptions
| Exception | Condition |
|---|---|
| Tools.API..::..Win32APIException | Moving failed, ie. Handle is invalid |