# Rectangle

Xojo provides a <span class="title-ref">Rectangle</span> control for desktop, mobile and web projects:

- `DesktopRectangle</api/user_interface/desktop/desktoprectangle>`
- `MobileRectangle</api/user_interface/mobile/mobilerectangle>`
- `WebRectangle</api/user_interface/web/webrectangle>`

## Common members

These events, methods and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Methods

| Name    | Description                          |
|---------|--------------------------------------|
| Refresh | Causes the control to redraw itself. |

### Properties

| Name            | Description                                                                          |
|-----------------|--------------------------------------------------------------------------------------|
| BorderColor     | The color of the rectangle's border. Not currently supported for web projects.       |
| BorderThickness | The thickness of the rectangle's border. Not currently supported for web projects.   |
| FillColor       | The color used to fill the interior of the <span class="title-ref">rectangle</span>. |
| Height          | The height of the <span class="title-ref">rectangle</span>.                          |
| Width           | The width of the <span class="title-ref">rectangle</span>.                           |

<div class="seealso">

`DesktopRectangle</api/user_interface/desktop/desktoprectangle>`, `MobileRectangle</api/user_interface/mobile/mobilerectangle>` and `WebRectangle</api/user_interface/web/webrectangle>`

</div>
