TX Text Control X15 allows the insertion and manipulation of text fields of type and . A TextField is a TX Text Control internal field and ApplicationFields are MS Word compatible MergeFields, FormFields or any other supported field type.
The textFieldEntered event that can be attached using the method is fired when the input position enters a text field. The event arguments return the properties of the current field. In order to manipulate the field object directly, the method can be used which returns all fields or the field at the current input position.
In the document, form element fields are represented by their display text (as they would be printed or exported to PDF). All field objects provide a property that provides the size and the location of a field. This information can be used to render the actual form element at that location. The following code renders an HTML drop down box at the field location:
The following screen cast shows the inserted drop down box in action. A custom button has been added to a new ribbon group to insert a drop down field.
Try this on your own and download the sample hosted on GitHub.
Download and Fork This Sample on GitHub
We proudly host our sample code on github.com/TextControl.
Please fork and contribute.
Requirements for This Sample
- Visual Studio 2015 or better
- TX Text Control .NET Server for ASP.NET (trial sufficient)