TX Text Control .NET for Windows Forms

TextFormat Property

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

Description

Gets and sets the text format of the field.

Syntax

public TextFormatOptions TextFormat { get; set; }

Members

ValueDescription
UppercaseThe text is displayed in uppercase.
LowercaseThe text is displayed in lowercase.
FirstCapitalThe first character is displayed in uppercase.
TitleCaseThe text is displayed in title case.
NoneThe text is displayed with a special format.

Examples

The following example uses IncludeText.TextFormat to configure text format as part of the include text workflow. The configured value is checked before the workflow continues.

includeText.TextFormat = TXTextControl.DocumentServer.Fields.TextFormatOptions.Uppercase;
Console.WriteLine($"Text Format used by Include Text: {includeText.TextFormat}");