# LoadSettings.ImageSearchPath Property

> Sets a file path that is used to search for resources like images or hypertext links. This path replaces all absolute file paths used in the 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 > LoadSettings.ImageSearchPath Property
- **533 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/imagesearchpath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/imagesearchpath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/imagesearchpath-property/llms-full.txt

---

### Description

Sets a file path that is used to search for resources like images or hypertext links. This path replaces all absolute file paths used in the document.

### Syntax

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

```vbnet
Public Property ImageSearchPath As String
```

### Examples

The following example configures how a WordprocessingML template is loaded by using `LoadSettings.ImageSearchPath`.

```csharp
LoadSettings loadSettings = new();

loadSettings.ImageSearchPath = "document.docx";
if (!string.IsNullOrWhiteSpace(loadSettings.ImageSearchPath))
{
    Console.WriteLine($"Image Search Path: {loadSettings.ImageSearchPath}");
}

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
```

```vbnet
Dim loadSettings As New LoadSettings()

loadSettings.ImageSearchPath = "document.docx"
If Not String.IsNullOrWhiteSpace(loadSettings.ImageSearchPath) Then
    Console.WriteLine($"Image Search Path: {loadSettings.ImageSearchPath}")
End If

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
```

---

## Nearby

- **Previous:** [LoadSettings.GetDocumentPartNames Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/getdocumentpartnames-method/llms-full.txt)
- **Next:** [LoadSettings.LastModificationDate Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/lastmodificationdate-property/llms-full.txt)
