TX Text Control .NET for Windows Forms

LoadSubTextParts Property

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

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.