# Javascript: FormattingStyle.setBold Method

> Sets the bold attribute of the style.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: FormattingStyle.setBold Method
- **252 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setbold-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setbold-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setbold-method/llms-full.txt

---

### Description

Sets the bold attribute of the style.

### Syntax

```javascript
<void> FormattingStyle.setBold(<Boolean> isBold, <EmptyRequestCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| isBold | The bold attribute of the style. |
| callback | Is called when the operation completed. |

### Examples

The following example demonstrates `FormattingStyle.setBold` in a practical document-editing workflow. It sets the bold attribute of the style.

```javascript
function configureBold(formattingStyle) {
    formattingStyle.setBold(
        true,
        function() {
            console.log("set bold completed.");
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setBaseline Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setbaseline-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.setCapitals Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/setcapitals-method/llms-full.txt)
