# Javascript: FormattingStyle.getName Method

> Gets the name of the style.

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

---

### Description

Gets the name of the style.

### Syntax

```javascript
<void> FormattingStyle.getName(<RequestStringCallback> callback)
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the name of the style. |

### Examples

The following example demonstrates `FormattingStyle.getName` in a practical document-editing workflow. It gets the name of the style.

```javascript
function inspectName(formattingStyle) {
    formattingStyle.getName(
        function(result) {
            console.log("get name result:", result);
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.getItalic Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/getitalic-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.getStrikeout Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/getstrikeout-method/llms-full.txt)
