TX Text Control .NET for Windows Forms Documentation

Howto: Use Text Fields

Text Fields are markers which are inserted in the text. They can be used to implement a wide range of special functions in a text processor. To name just a few:

  • Mail Merge functions
  • Spreadsheet-like calculation fields
  • Bookmarks
  • Automatic table of contents and index generation
  • Hypertext links and targets

Any group of characters within the text can be a marked text field. The maximum number of fields is 65,535. Text Control maintains the positions and numbers of the fields. It also takes care of loading, saving and clipboard operations.

Additional information about text fields can be found in the Technical Articles part in the chapter Text Fields and Hypertext Links.

The source code for this example is contained in the following directories:

  • %USERPROFILE%\My Documents\TX Text Control 17.0.NET for Windows Forms\Samples\WinForms\VB.NET\TextFields
  • %USERPROFILE%\My Documents\TX Text Control 17.0.NET for Windows Forms\Samples\WinForms\CSharp\TextFields

Used TX Text Control controls:

  • TXTextControl.TextControl
  • TXTextControl.ButtonBar
  • TXTextControl.RulerBar
  • TXTextControl.StatusBar

Relevant API links:

A Simple Example

Bookmarks

Adding Strings to Marked Text Fields

Importing and Exporting Fields from and to MS Word

Implementing a MERGEFIELD Class

Implementing a FORMTEXT Class

Creating and Merging MS Word Compatible Templates

TX Quote Gemerator - An Advanced Example

 
 
 

Products

Support

Downloads

Corporate

Buy Now