# DocumentSettings.DocumentBasePath Property

> Gets or sets a file path that is used to search for resources like images or hypertext links. This path is added to all relative file paths used in the document.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 29.0
- **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 > DocumentSettings.DocumentBasePath Property
- **574 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentbasepath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentbasepath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentbasepath-property/llms-full.txt

---

### Description

Gets or sets a file path that is used to search for resources like images or hypertext links. This path is added to all relative file paths used in the document.

### Syntax

```csharp
public string DocumentBasePath { get; set; }
```

```vbnet
Public Property DocumentBasePath As String
```

### Examples

The following example configures document settings for the current document by using `DocumentSettings.DocumentBasePath`.

```csharp
DocumentSettings documentSettings = textControl.DocumentSettings;

documentSettings.DocumentBasePath = "document.docx";
if (!string.IsNullOrWhiteSpace(documentSettings.DocumentBasePath))
{
    Console.WriteLine($"Document Base Path: {documentSettings.DocumentBasePath}");
}

documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";
```

```vbnet
Dim documentSettings As DocumentSettings = textControl.DocumentSettings

documentSettings.DocumentBasePath = "document.docx"
If Not String.IsNullOrWhiteSpace(documentSettings.DocumentBasePath) Then
    Console.WriteLine($"Document Base Path: {documentSettings.DocumentBasePath}")
End If

documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"
```

---

## Nearby

- **Previous:** [DocumentSettings.CreatorApplication Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/creatorapplication-property/llms-full.txt)
- **Next:** [DocumentSettings.DocumentKeywords Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/documentsettings/documentkeywords-property/llms-full.txt)
