TX Text Control .NET Server

LoadSubTextParts Property

Property|Introduced in 23.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

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.

Syntax

public bool LoadSubTextParts { get; set; }

Examples

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

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);

Limitations

DOCX, DOC and RTF Formats only.