# LoadSettings.LoadSubTextParts Property

> DOCX, DOC and RTF Formats only: Specifies whether or not bookmarks which extend over several characters are converted to SubTextParts. By default bookmarks are converted to DocumentTargets and when a bookmark extend over several characters, the first character is used as the target position.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > LoadSettings.LoadSubTextParts Property
- **546 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/loadsubtextparts-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/loadsubtextparts-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/loadsubtextparts-property/llms-full.txt

---

### Description

DOCX, DOC and RTF Formats only: Specifies whether or not bookmarks which extend over several characters are converted to [SubTextParts](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/subtextpart/llms-full.txt). By default bookmarks are converted to [DocumentTargets](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/documenttarget/llms-full.txt) and when a bookmark extend over several characters, the first character is used as the target position.

### Syntax

```csharp
public bool LoadSubTextParts { get; set; }
```

```vbnet
Public Property LoadSubTextParts As Boolean
```

### Examples

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

```csharp
LoadSettings loadSettings = new();

loadSettings.LoadSubTextParts = true;
if (loadSettings.LoadSubTextParts)
{
    Console.WriteLine("Load Settings: Load Sub Text Parts is enabled.");
}

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

```vbnet
Dim loadSettings As New LoadSettings()

loadSettings.LoadSubTextParts = True
If loadSettings.LoadSubTextParts Then
    Console.WriteLine("Load Settings: Load Sub Text Parts is enabled.")
End If

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

### Limitations

DOCX, DOC and RTF Formats only.

---

## Nearby

- **Previous:** [LoadSettings.LoadImages Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/loadimages-property/llms-full.txt)
- **Next:** [LoadSettings.PageMargins Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/loadsettings/pagemargins-property/llms-full.txt)
