TX Text Control .NET for WPF

IncludeText Class

Class|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FieldAdapter
  2. MailMergeFieldAdapter
  3. IncludeText

Description

The IncludeText class implements the MS Word specific INCLUDETEXT field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

Syntax

public sealed class IncludeText : MailMergeFieldAdapter

Examples

The following example creates an Include Text instance and configures its filename setting for a document workflow.

TXTextControl.DocumentServer.Fields.IncludeText includeText = new();
includeText.Filename = "document.docx";

Members

Constructors

ConstructorDescription
IncludeTextInitializes a new instance of the IncludeText class.
MailMergeFieldAdapterInitializes a new instance of the MailMergeFieldAdapter class. (Inherited from MailMergeFieldAdapter.)

Properties

PropertyDescription
BookmarkGets and sets the bookmark switch of the field.
FilenameGets and sets the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
PreserveFormattingSpecifies whether the field's formatting should be preserved. (Inherited from MailMergeFieldAdapter.)
TextFormatGets and sets the text format of the field.

Fields

FieldDescription
TYPE_NAMENot described in the reference. public const string TYPE_NAME = "INCLUDETEXT";