# Javascript: FormattingStyle.getBold Method

> Gets the bold attribute of the style.

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

---

### Description

Gets the bold attribute of the style.

### Syntax

```javascript
<void> FormattingStyle.getBold(<RequestBooleanCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the bold attribute of the style. |

### Examples

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

```javascript
function inspectBold(formattingStyle) {
    formattingStyle.getBold(
        function(result) {
            if (result) {
                console.log("get bold is available.");
            } else {
                console.warn("get bold is not available in the current document state.");
            }
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.getBaseStyle Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/getbasestyle-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.getCapitals Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/getcapitals-method/llms-full.txt)
