Aspose::Words::Fields::FormField::set_TextInputDefault method

FormField::set_TextInputDefault method

Sets the default string or a calculation expression of a text form field.

void Aspose::Words::Fields::FormField::set_TextInputDefault(const System::String & value)

Remarks

The meaning of this property depends on the value of the TextInputType property.

When TextInputType is Regular or Number, this string specifies the default string for the text form field. This string is the content that Microsoft Word will display in the document when the form field is empty.

When TextInputType is Calculated, then this string holds the expression to be calculated. The expression needs to be a formula valid according to Microsoft Word formula field requirements. When you set a new expression using this property, Aspose.Words calculates the formula result automatically and inserts it into the form field.

Microsoft Word allows strings with at most 255 characters.

See Also