DateField Class
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDocumentServer.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDocumentServer.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
- Inherits
- Field
Adapter - Mail
Merge Field Adapter - Date
Field
- Field
Description
The DateField implements the MS Word specific DATEFIELD field. This field must be used in combination with an ApplicationField that should be modified using this adapter.
Syntax
public sealed class DateField : MailMergeFieldAdapterPublic NotInheritable Class DateField
Inherits MailMergeFieldAdapterExamples
The following example creates a Date Field instance and configures its text setting for a document workflow.
TXTextControl.DocumentServer.Fields.DateField dateField = new();
dateField.Text = "Quarterly results";Dim dateField As New TXTextControl.DocumentServer.Fields.DateField()
dateField.Text = "Quarterly results"Members
Constructors
| Constructor | Description |
|---|---|
| DateField | Initializes a new instance of the DateField class. |
| MailMergeFieldAdapter | Initializes a new instance of the MailMergeFieldAdapter class. (Inherited from MailMergeFieldAdapter.) |
Properties
| Property | Description |
|---|---|
| Culture | Specifies a CultureInfo instance that supplies culture-specific formatting information which is used when applying the formatting string to the field content. The default value for this property is the current thread culture. |
| Date | Sets the date of the field. |
| Format | Gets and sets the format of the field. It must be a standard DateTime format string of the .NET Framework. |
| PreserveFormatting | Specifies whether the field's formatting should be preserved. (Inherited from MailMergeFieldAdapter.) |
| Text | Gets and sets the displayed text of the field. |
Fields
| Field | Description |
|---|---|
| TYPE_NAME | Not described in the reference. public const string TYPE_NAME = "DATE"; |