# SaveSettings.SavedFile Property

> Read only. Gets the name and path of the file that has been saved. It is set to an empty string, if text has been saved in a byte array or as a string.

- **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.SavedFile Property
- **425 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/savedfile-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/savedfile-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/savedfile-property/llms-full.txt

---

### Description

Read only. Gets the name and path of the file that has been saved. It is set to an empty string, if text has been saved in a byte array or as a string.

### Syntax

```csharp
public string SavedFile { get; }
```

```vbnet
Public ReadOnly Property SavedFile As String
```

### Examples

The following example reads `SaveSettings.SavedFile` after the document has been saved.

```csharp
SaveSettings saveSettings = new();
textControl.Text = "Quarterly results";
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);
Console.WriteLine($"Saved File: {saveSettings.SavedFile}");
```

```vbnet
Dim saveSettings As New SaveSettings()
textControl.Text = "Quarterly results"
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)
Console.WriteLine($"Saved File: {saveSettings.SavedFile}")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SaveSettings.PageSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/pagesize-property/llms-full.txt)
- **Next:** [SaveSettings.SaveDocumentBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/savesettings/savedocumentbackcolor-property/llms-full.txt)
