TX Text Control .NET for WPF

FieldDisplayMode Property

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

Description

Gets or sets a value of type FieldDisplayMode which specifies the content display mode of the inserted fields. Either the field text or the field codes can be displayed.

Syntax

public FieldDisplayMode FieldDisplayMode { get; set; }

Examples

The following example uses MergeBlockSettings.FieldDisplayMode to configure field display mode as part of the merge block settings workflow. The configured value is checked before the workflow continues.

mergeBlockSettings.FieldDisplayMode = TXTextControl.DocumentServer.DataSources.FieldDisplayMode.ShowFieldText;
Console.WriteLine($"Field Display Mode used by Merge Block Settings: {mergeBlockSettings.FieldDisplayMode}");