TextFormFieldType Enumeration |
Specifies the type of a text form field.
Namespace:
Aspose.Words.Fields
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic enum TextFormFieldType
Public Enumeration TextFormFieldType
public enum class TextFormFieldType
Members
| Member name | Value | Description |
---|
| Regular | 0 |
The text form field can contain any text.
|
| Number | 1 |
The text form field can contain only numbers.
|
| Date | 2 |
The text form field can contain only a valid date value.
|
| CurrentDate | 3 |
The text form field value is the current date when the field is updated.
|
| CurrentTime | 4 |
The text form field value is the current time when the field is updated.
|
| Calculated | 5 |
The text form field value is calculated from the expression specified in
the TextInputDefault property.
|
ExamplesBuilds a sample form to fill.
DocumentBuilder builder = new DocumentBuilder();
builder.InsertTextInput("", TextFormFieldType.Regular, "", "Enter your name here", 30);
builder.Writeln("");
builder.Writeln("");
string[] items =
{
"-- Select your favorite footwear --", "Sneakers", "Oxfords", "Flip-flops", "Other",
"I prefer to be barefoot"
};
builder.InsertComboBox("", items, 0);
builder.Writeln("");
builder.Writeln("");
builder.Document.Save(ArtifactsDir + "DocumentBuilder.CreateForm.doc");
See Also