public void InsertAndRetrieveFormFields()
{
//ExStart
//ExFor:DocumentBuilder.InsertTextInput
//ExId:FormFieldsInsertAndRetrieve
//ExSummary:Shows how to insert form fields, set options and gather them back in for use
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insert a text input field. The unique name of this field is "TextInput1", the other parameters define
// what type of FormField it is, the format of the text, the field result and the maximum text length (0 = no limit)
builder.InsertTextInput("TextInput1", TextFormFieldType.Regular, "", "", 0);
//ExEnd
}