TX Text Control .NET for WPF

DateContentControl Class

Class|Introduced in 21.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Inherits
  1. FieldAdapter
  2. ContentControlFieldAdapter
  3. DateContentControl

Description

The DateContentControl implements the MS Word specific date content control field. This field must be used in combination with an ApplicationField that should be modified using this adapter.

Syntax

public class DateContentControl : ContentControlFieldAdapter

Examples

The following example creates a Date Content Control instance and configures its date format setting for a document workflow.

TXTextControl.DocumentServer.Fields.DateContentControl dateContentControl = new();
dateContentControl.DateFormat = "0.00";

Members

Constructors

ConstructorDescription
ContentControlFieldAdapterInitializes a new instance of the ContentControlFieldAdapter class. (Inherited from ContentControlFieldAdapter.)
DateContentControlInitializes a new instance of the DateContentControl class.

Properties

PropertyDescription
CalendarGets or sets the calendar type of the content control field.
ContentDeletableSpecifies whether the content of the content control field should be deletable or not. (Inherited from ContentControlFieldAdapter.)
ContentEditableSpecifies whether the content of the content control field should be editable or not. (Inherited from ContentControlFieldAdapter.)
DateGets or sets the date of the content control field.
DateFormatGets or sets the date format of the content control field.
IdGets or sets the content control's id. (Inherited from ContentControlFieldAdapter.)
LanguageIDGets or sets the language ID of the content control field.
PlaceholderGets or sets the placeholder field part of the content control field. (Inherited from ContentControlFieldAdapter.)
StoreMappedDataAsGets or sets the translation that shall be performed on the displayed date in a date picker structured document tag.
TagGets or sets the content control's tag. (Inherited from ContentControlFieldAdapter.)
TitleGets or sets the content control's title. (Inherited from ContentControlFieldAdapter.)
TypeGets or sets the type of the content control field. (Inherited from ContentControlFieldAdapter.)