# Javascript: TXTextControl.SaveSettings.CssSaveMode Enumeration

> HTML only. Specifies how to save stylesheet data with an HTML document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.SaveSettings.CssSaveMode Enumeration
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/csssavemode-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/csssavemode-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/csssavemode-enumeration/llms-full.txt

---

### Description

HTML only. Specifies how to save stylesheet data with an HTML document.

### Members

| Member | Description |
|---|---|
| None | All format information is saved in the body of the HTML document through HTML tags. |
| CreateFile | Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used. |
| OverwriteFile | Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. If the file already exists, it is overridden. If the HTML document is saved in a memory buffer, this setting cannot be used. |
| Inline | Stylesheets are saved in the head of the HTML document. |

### Examples

The following example uses `TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile` (stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.) in a document-editing workflow.

```javascript
const value = TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile;
console.log("Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.", value);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.SaveSettings.creatorApplication Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/creatorapplication-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.SaveSettings.cssSaveMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-savesettings/csssavemode-property/llms-full.txt)
