# UserDictionary.FilePath Property

> Gets the name and path of the file that has been used to load this user dictionary or where it has been saved to. If the user dictionary was neither loaded from nor saved as a file, the property returns null.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 7.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > UserDictionary.FilePath Property
- **343 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/filepath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/filepath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/filepath-property/llms-full.txt

---

### Description

Gets the name and path of the file that has been used to load this [user dictionary](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) or where it has been saved to. If the user dictionary was neither loaded from nor saved as a file, the property returns null.

### Syntax

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

```vbnet
Public ReadOnly Property FilePath As String
```

### Examples

The following example includes the file path value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"File Path: {userDictionary.FilePath}");
Console.WriteLine("User Dictionary is ready for use.");
```

```vbnet
Console.WriteLine($"File Path: {userDictionary.FilePath}")
Console.WriteLine("User Dictionary is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [UserDictionary Constructor](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/constructor/llms-full.txt)
- **Next:** [UserDictionary.IsEditable Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/iseditable-property/llms-full.txt)
