# RequestFormattingStyleCallback Function

> Callback function for requesting a style.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Function
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > RequestFormattingStyleCallback Function
- **208 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestformattingstylecallback/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestformattingstylecallback/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestformattingstylecallback/llms-full.txt

---

### Description

Callback function for requesting a [style](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/formattingstyle/llms-full.txt).

### Syntax

```javascript
function(<FormattingStyle> style)
```

### Examples

The following example demonstrates `RequestFormattingStyleCallback` in a practical document-editing workflow. Callback function for requesting a style.

```javascript
function requestFormattingStyleCallback(style) {
    console.log("style:", style);
}

function useRequestFormattingStyleCallback(formattingStyle) {
    formattingStyle.getBaseStyle(requestFormattingStyleCallback);
}
```

---

## Nearby

- **Previous:** [RequestFontUnderlineStyleCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestfontunderlinestylecallback/llms-full.txt)
- **Next:** [RequestFormFieldCallback Function](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/requestformfieldcallback/llms-full.txt)
