Click or drag to resize
FormFieldDataValueOrDefault Property
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.

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1243
Syntax
public Object ValueOrDefault { get; }

Property Value

Type: 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 propertiesValue type
FORMTEXT (FormTextData)TextType is RegularTextString
FORMTEXT (FormTextData)TextType is Number or CalculationDouble
FORMTEXT (FormTextData)TextType is Date or CurrentDateDateTime
FORMTEXT (FormTextData)TextType is CurrentTimeTimeSpan
FORMCHECKBOX (FormCheckBoxData)Boolean
FORMDROPDOWN (FormDropDownData)String
If textual value of form field is not parse-able into required type, then textual value is returned.
See Also