Class FormTextData
Represents the data for a text-input form field (FORMTEXT).
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class FormTextData : FormFieldData
Properties
DefaultValue
The default value of the text field (shown when the field is empty).
Maps to the w:ffData/w:textInput/w:default element.
Declaration
public string DefaultValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
FieldType
Gets the type of this form field.
Declaration
public override FormFieldType FieldType { get; }
Property Value
| Type | Description |
|---|---|
| FormFieldType |
Overrides
MaximumLength
The maximum number of characters allowed in the text field.
A value of 0 means no limit.
Maps to the w:ffData/w:textInput/@w:maxLength attribute.
Declaration
public int MaximumLength { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
TextType
The text type of the field (regular, number, date, etc.).
Maps to the w:ffData/w:textInput/@w:type attribute.
Declaration
public FormTextType TextType { get; set; }
Property Value
| Type | Description |
|---|---|
| FormTextType |
TextValue
The current text value of the field. On read, this is the field result (text between separate and end fldChar). On write, this becomes the field result.
Declaration
public string TextValue { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Value
Gets or sets the field value as an object. Derived classes override this to provide type-specific values.
Declaration
public override object Value { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Overrides
ValueFormat
The format applied to the field value (e.g. "Title case", "dd/MM/yyyy").
Maps to the w:ffData/w:textInput/@w:format attribute.
Declaration
public string ValueFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| string |