FormFieldData Class
Represents a form related data associated with the parent form field within the document.
- Inheritance:
- System.ObjectFormFieldData
- Derived
Remarks
Associated parent form field may be of any of the following types (with the associated FieldType and FormData type in parentheses)
- Text Box (FormText - FormTextData)
- Check Box (FormCheckBox - FormCheckBoxData)
- Drop-down List (FormDropDown - FormDropDownData)
Properties
CalculateOnExit
Gets or sets a value indicating whether the content of all fields within the document shall be recalculated from their field codes when the content of the parent form field is modified.
Property Value
- System.Boolean
true if the content of all fields within the document shall be recalculated from their field codes when the content of the parent form field is modified; otherwise, false.
Enabled
Gets or sets a value indicating whether the parent form field shall behave as though it is enabled or disabled when it is displayed in the document. Default value is true.
Property Value
- System.Boolean
true if parent form field shall behave as though it is enabled when it is displayed in the document; otherwise, false.
EntryMacro
Gets or sets the subroutine in a scripting language which should be executed when the value of the parent form field is entered.
Property Value
- System.String
The subroutine in a scripting language which should be executed when the value or content of the parent form field is entered.
ExitMacro
Gets or sets the subroutine in a scripting language which should be executed when the value of the parent form field is exited.
Property Value
- System.String
The subroutine in a scripting language which should be executed when the value of the parent form field is exited.
Field
Gets the parent form field.
Property Value
The parent form field.
HelpText
Gets or sets the optional help text which shall be associated with the parent form field.
Property Value
- System.String
The optional help text which shall be associated with the parent form field.
IsHelpTextAutoEntry
Gets or sets a value indicating whether HelpText should be interpreted as the name of a glossary document entry whose contents contain the help text.
Property Value
- System.Boolean
IsStatusTextAutoEntry
Gets or sets a value indicating whether StatusText should be interpreted as the name of a glossary document entry whose contents contain the status text.
public bool IsStatusTextAutoEntry { get; set; }
Public Property IsStatusTextAutoEntry As Boolean
Property Value
- System.Boolean
true if StatusText should be interpreted as the name of a glossary document entry whose contents contain the status text; otherwise, if StatusText should be interpreted as the literal text for the status text,
Name
Gets or sets the name of the form field.
Property Value
- System.String
The name of the form field.
StatusText
Gets or sets the optional status text which shall be associated with the parent form field.
Property Value
- System.String
The optional status text which shall be associated with the parent form field.
Value
Gets the value of this form field explicitly set by the user or null, if value was not explicitly set. Type of the value depends on form field type as explained in remarks.
Property Value
- System.Object
The value of this form field explicitly set by the user or null, if value was not explicitly set.
Remarks
Type of the value depends on form field type, form field properties (such as TextType) and whether the textual value of form field is parse-able into required type as explained in the following table:
Form field type (FormFieldData derived type) | Form field properties | Value type |
---|---|---|
FORMTEXT (FormTextData) | TextType is RegularText | System.String |
FORMTEXT (FormTextData) | TextType is Number or Calculation | System.Double |
FORMTEXT (FormTextData) | TextType is Date or CurrentDate | System.DateTime |
FORMTEXT (FormTextData) | TextType is CurrentTime | System.TimeSpan |
FORMCHECKBOX (FormCheckBoxData) | System.Boolean | |
FORMDROPDOWN (FormDropDownData) | System.String |
ValueOrDefault
Gets the value of this form field explicitly set by the user or default value, if value was not explicitly set. Type of the value depends on form field type as explained in remarks.
Property Value
- System.Object
The value of this form field explicitly set by the user or default value, if value was not explicitly set.
Remarks
Type of the value depends on form field type, form field properties (such as TextType) and whether the textual value of form field is parse-able into required type as explained in the following table:
Form field type (FormFieldData derived type) | Form field properties | Value type |
---|---|---|
FORMTEXT (FormTextData) | TextType is RegularText | System.String |
FORMTEXT (FormTextData) | TextType is Number or Calculation | System.Double |
FORMTEXT (FormTextData) | TextType is Date or CurrentDate | System.DateTime |
FORMTEXT (FormTextData) | TextType is CurrentTime | System.TimeSpan |
FORMCHECKBOX (FormCheckBoxData) | System.Boolean | |
FORMDROPDOWN (FormDropDownData) | System.String |
Methods
Reset()
Resets the Value of this form field instance.
Remarks
FORMTEXT fields with TextType equal to CurrentDate, CurrentTime and Calculation are currently not reset.
ToString()
Returns a System.String that represents this FormFieldData instance.
public sealed override string ToString()
Public NotOverridable Overrides Function ToString As String
Returns
- System.String
A System.String that represents this FormFieldData instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).