Click or drag to resize
TextFormFieldType Enumeration
Specifies the type of a text form field.

Namespace: Aspose.Words.Fields
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public enum TextFormFieldType
Members
  Member nameValueDescription
Regular0 The text form field can contain any text.
Number1 The text form field can contain only numbers.
Date2 The text form field can contain only a valid date value.
CurrentDate3 The text form field value is the current date when the field is updated.
CurrentTime4 The text form field value is the current time when the field is updated.
Calculated5 The text form field value is calculated from the expression specified in the TextInputDefault property.
Examples
Builds a sample form to fill.
DocumentBuilder builder = new DocumentBuilder();

// Insert a text form field for input a name.
builder.InsertTextInput("", TextFormFieldType.Regular, "", "Enter your name here", 30);

// Insert two blank lines.
builder.Writeln("");
builder.Writeln("");

string[] items =
{
    "-- Select your favorite footwear --", "Sneakers", "Oxfords", "Flip-flops", "Other",
    "I prefer to be barefoot"
};

// Insert a combo box to select a footwear type.
builder.InsertComboBox("", items, 0);

// Insert 2 blank lines.
builder.Writeln("");
builder.Writeln("");

builder.Document.Save(ArtifactsDir + "DocumentBuilder.CreateForm.doc");
See Also