Gets or sets the TextComponent object which is associated with the MailMerge component. It must be of the type ServerTextControl, TextControl or WPF.TextControl. The PageSize, PageMargins and Landscape properties will be used, if UseTemplateFormat has been set to false. The ServerTextControl.FormattingPrinter property will be used internally to format the text. It returns null when not specified.

Syntax

public object TextComponent { get; set; }
Public Property TextComponent() As System.Object

Examples

The following examples creates a new MailMerge object and associates a ServerTextControl with it.

TXTextControl.MailMerge mailMerge1 = new TXTextControl.MailMerge(); TXTextControl.ServerTextControl serverTextControl1 = new TXTextControl.ServerTextControl(); 
mailMerge1.TextComponent = serverTextControl1;
Dim MailMerge1 As TXTextControl.MailMerge = New TXTextControl.MailMerge 
Dim ServerTextControl1 As TXTextControl.ServerTextControl = New TXTextControl.ServerTextControl()
MailMerge1.TextComponent = ServerTextControl1