TextFormat Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Gets and sets the text format of the field.
Syntax
public TextFormatOptions TextFormat { get; set; }Public Property TextFormat As TextFormatOptionsMembers
| Value | Description |
|---|---|
| Uppercase | The text is displayed in uppercase. |
| Lowercase | The text is displayed in lowercase. |
| FirstCapital | The first character is displayed in uppercase. |
| TitleCase | The text is displayed in title case. |
| None | The 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}");includeText.TextFormat = TXTextControl.DocumentServer.Fields.TextFormatOptions.Uppercase
Console.WriteLine($"Text Format used by Include Text: {includeText.TextFormat}")