# Move Element

Moves and resizes the window that contains the element; optionally minimizes or maximizes the window afterwards. Works only on Windows elements. If the window is minimized or maximized before the move, it is restored to its previous size. By default, `Element` uses the `element` found by the **Get Element** activity.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `Element` | `IElement` | ✅ Yes    | The element whose window is moved. If empty (null), the activity throws an error. |
| `OffsetX` | `Int32` | ❌ No     | New position of the window's left edge on the screen (pixels). If 0 or empty, the current position is kept. |
| `OffsetY` | `Int32` | ❌ No     | New position of the window's top edge on the screen (pixels). If 0 or empty, the current position is kept. |
| `Width`   | `Int32` | ❌ No     | New width of the window (pixels). If 0 or empty, the current width is kept. |
| `Height`  | `Int32` | ❌ No     | New height of the window (pixels). If 0 or empty, the current height is kept. |
| `AnimateMove` | `Boolean` | ❌ No     | If `True`, the window slides to its new position. |
| `WindowState` | `WindowStateMode` | ❌ No     | Window state to apply after the move: `RestoreOriginal` (restore to previous size), `Minimized` (minimize) or `Maximized` (maximize). Default: empty (`None`), the state is not changed. |