# Javascript: FormattingStyle.getStrikeout Method

> Gets the strikeout attribute of the style.

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

---

### Description

Gets the strikeout attribute of the style.

### Syntax

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

### Parameters

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

### Examples

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

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

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.getName Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/getname-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.getTextBackColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/formattingstyle/gettextbackcolor-method/llms-full.txt)
