# JSBounds

## Overview

The `JSBounds` object defines a rectangular boundary using coordinates and dimensions, enabling the specification of position and size. ## Properties

* `height`: The height of the bounds. It can be retrieved or modified.
* `width`: The width of the bounds. It can be retrieved or modified.
* `x`: The x-coordinate of the top-left corner. It can be retrieved or modified.
* `y`: The y-coordinate of the top-left corner. It can be retrieved or modified.

## Summary

The `JSBounds` object provides a straightforward interface to manage position and size through its properties, making it useful for layout and graphical computations.

## Properties Summarized

| Type                                                                         | Name              | Summary               |
| ---------------------------------------------------------------------------- | ----------------- | --------------------- |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [height](#height) | Get/Set height        |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [width](#width)   | Get/Set width.        |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [x](#x)           | Get/Set x coordinate. |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [y](#y)           | Get/Set y coordinate  |

## Properties Detailed

### height

Get/Set height

**Type**\
[Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) height

**Sample**

```js
bounds.height
```

### width

Get/Set width.

**Type**\
[Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) width

**Sample**

```js
bounds.width
```

### x

Get/Set x coordinate.

**Type**\
[Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) x coordinate

**Sample**

```js
bounds.x
```

### y

Get/Set y coordinate

**Type**\
[Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) y

**Sample**

```js
bounds.y
```

***
