# TITLEPOSITION

## Constants Summarized

| Type                                                                         | Name                           | Summary                                         |
| ---------------------------------------------------------------------------- | ------------------------------ | ----------------------------------------------- |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [ABOVE\_BOTTOM](#above_bottom) | Title in the middle of the border's bottom line |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [ABOVE\_TOP](#above_top)       | Title above the border's top line               |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [BELOW\_BOTTOM](#below_bottom) | Title below the border's bottom line            |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [BELOW\_TOP](#below_top)       | Title above the border's bottom line            |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [DEFAULT](#default)            | Default vertical orientation for the title text |
| [Number](https://docs.servoy.com/reference/servoycore/dev-api/js-lib/number) | [TOP](#top)                    | Title in the middle of the border's top line    |

## Constants Detailed

### ABOVE\_BOTTOM

Title in the middle of the border's bottom line

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.ABOVE_BOTTOM);
```

### ABOVE\_TOP

Title above the border's top line

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.ABOVE_TOP);
```

### BELOW\_BOTTOM

Title below the border's bottom line

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.BELOW_BOTTOM);
```

### BELOW\_TOP

Title above the border's bottom line

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.BELOW_TOP);
```

### DEFAULT

Default vertical orientation for the title text

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.DEFAULT_POSITION);
```

### TOP

Title in the middle of the border's top line

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

**Sample**

```js
var form = solutionModel.getForm("someForm");
form.borderType = solutionModel.createTitledBorder('Test',null,'#ff0000',SM_TITLEJUSTIFICATION.DEFAULT,SM_TITLEPOSITION.TOP);
```
