LoadSubTextParts Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property LoadSubTextParts As BooleanExamples
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);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.