# SaveSettings.CssSaveMode Property

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

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > SaveSettings.CssSaveMode Property
- **670 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/csssavemode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/csssavemode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/csssavemode-property/llms-full.txt

---

### Description

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

### Syntax

```csharp
public CssSaveMode CssSaveMode { get; set; }
```

```vbnet
Public Property CssSaveMode As CssSaveMode
```

### Members

| Value | Description |
|---|---|
| None | All format information is saved in the body of the HTML document through HTML tags. |
| Inline | Stylesheets are saved in the head of the HTML document. |
| 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. |

### Examples

The following example configures how the current document is exported to WordprocessingML by using `SaveSettings.CssSaveMode`.

```csharp
textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.CssSaveMode = CssSaveMode.CreateFile;
Console.WriteLine($"Css Save Mode used by Save Settings: {saveSettings.CssSaveMode}");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
```

```vbnet
textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()

saveSettings.CssSaveMode = CssSaveMode.CreateFile
Console.WriteLine($"Css Save Mode used by Save Settings: {saveSettings.CssSaveMode}")

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)
```

---

## Nearby

- **Previous:** [SaveSettings.CssFileName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/cssfilename-property/llms-full.txt)
- **Next:** [SaveSettings.DialogSettings Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/dialogsettings-enumeration/llms-full.txt)
