# Javascript: FormattingStyle.setItalic Method

> Sets the italic attribute 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.setItalic Method
- **256 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setitalic-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setitalic-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setitalic-method/llms-full.txt

---

### Description

Sets the italic attribute of the style.

### Syntax

```javascript
<void> FormattingStyle.setItalic(<Boolean> isItalic, <EmptyRequestCallback> callback)
```

### Parameters

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

### Examples

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

```javascript
function configureItalic(formattingStyle) {
    formattingStyle.setItalic(
        true,
        function() {
            console.log("set italic completed.");
        }
    );
}
```

---

## Nearby

- **Previous:** [Javascript: FormattingStyle.setForeColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setforecolor-method/llms-full.txt)
- **Next:** [Javascript: FormattingStyle.setName Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/setname-method/llms-full.txt)
