# Javascript: FormattingStyle.setBaseline Method

> Sets the baseline alignment, in twips, of the style.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: FormattingStyle.setBaseline Method
- **261 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setbaseline-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setbaseline-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setbaseline-method/llms-full.txt

---

### Description

Sets the baseline alignment, in twips, of the style.

### Syntax

```javascript
<void> FormattingStyle.setBaseline(<Number> baseline, <EmptyRequestCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| baseline | The baseline alignment, in twips. |
| callback | Is called when the operation completed. |

### Examples

The following example demonstrates `FormattingStyle.setBaseline` in a practical document-editing workflow. It sets the baseline alignment, in twips, of the style.

```javascript
function configureBaseline(formattingStyle) {
    formattingStyle.setBaseline(
        1,
        function() {
            console.log("set baseline completed.");
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setAutoBaseline Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setautobaseline-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.setBold Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setbold-method/llms-full.txt)
