# 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](/reference/servoycore/dev-api/js-lib/number.md) | [height](#height) | Get/Set height        |
| [Number](/reference/servoycore/dev-api/js-lib/number.md) | [width](#width)   | Get/Set width.        |
| [Number](/reference/servoycore/dev-api/js-lib/number.md) | [x](#x)           | Get/Set x coordinate. |
| [Number](/reference/servoycore/dev-api/js-lib/number.md) | [y](#y)           | Get/Set y coordinate  |

## Properties Detailed

### height

Get/Set height

**Type**\
[Number](/reference/servoycore/dev-api/js-lib/number.md) height

**Sample**

```js
bounds.height
```

### width

Get/Set width.

**Type**\
[Number](/reference/servoycore/dev-api/js-lib/number.md) width

**Sample**

```js
bounds.width
```

### x

Get/Set x coordinate.

**Type**\
[Number](/reference/servoycore/dev-api/js-lib/number.md) x coordinate

**Sample**

```js
bounds.x
```

### y

Get/Set y coordinate

**Type**\
[Number](/reference/servoycore/dev-api/js-lib/number.md) y

**Sample**

```js
bounds.y
```

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoycore/dev-api/application/jsbounds.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
