TX Text Control .NET Server

FileFormat Enumeration

Enumeration
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Determines a certain text format. These formats can be used to load templates containing text fields of type ApplicationField. The enumeration contains the following values:

Syntax

public enum FileFormat

Members

MemberValueDescription
MSWord0Specifies Microsoft Word format.
RichTextFormat1Specifies RTF format (Rich Text Format).
WordprocessingML2Specifies Microsoft Office Open XML format.
InternalUnicodeFormat3Specifies the internal TX Text Control format. Text is stored in Unicode format.

Examples

The following example selects the MSWord value from the File Format enumeration and uses it as a documented workflow choice.

TXTextControl.DocumentServer.FileFormat value = TXTextControl.DocumentServer.FileFormat.MSWord;
Console.WriteLine($"Using File Format: {value}");