TX Text Control .NET for WPF

TextBefore Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets and sets the text of the field that is displayed before the field's text.

Syntax

public string TextBefore { get; set; }

Examples

The following example uses MergeField.TextBefore to configure text before as part of the merge field workflow. The configured value is checked before the workflow continues.

mergeField.TextBefore = "Quarterly results";
if (!string.IsNullOrWhiteSpace(mergeField.TextBefore))
{
    Console.WriteLine($"Text Before: {mergeField.TextBefore}");
}