# .NET API

> Browse the .NET namespaces of TX Text Control .NET Server: ServerTextControl, MailMerge in DocumentServer, PDF forms, the Web.MVC helpers and TXTextControl.AI.

- **Product:** TX Text Control .NET Server
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET Server > API Reference > .NET API
- **2283 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/llms-full.txt

---

Every class, property, method and event that your C# code calls is documented in the .NET class library reference, sorted by namespace. Which namespace a class lives in tells you a lot about what it is for: the document engine and its document model are in `TXTextControl`, mail merge and PDF processing in `TXTextControl.DocumentServer` and the namespaces below it, and the ASP.NET Core integration of the Document Editor and the Document Viewer in `TXTextControl.Web.MVC`.

The table of namespaces below says what each one contains and where to start in it. A namespace's page in the reference lists its classes, interfaces and enumerations, and a class's page lists its members.

### Namespaces

| Namespace | What it contains | Start with |
|---|---|---|
| [TXTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/llms-full.txt) | The document engine for server code and the document model it works with: text, selection, paragraphs, tables, images, fields, sections, headers and footers, and the settings for loading and saving | [ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/llms-full.txt), [LoadSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/loadsettings/llms-full.txt), [SaveSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/savesettings/llms-full.txt) |
| [TXTextControl.DocumentServer](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver/llms-full.txt) | Mail merge: the class that merges templates with data, and the arguments of its events | [MailMerge](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver/mailmerge/llms-full.txt) |
| [TXTextControl.DocumentServer.DataSources](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/llms-full.txt) | Information about the tables, columns and relations of a data source, and the settings of a merge and its merge blocks | [DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt), [MergeSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datasources/mergesettings/llms-full.txt) |
| [TXTextControl.DocumentServer.DataShaping](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/llms-full.txt) | Instructions that filter and sort the data of merge blocks before the merge | [FilterInstruction](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/filterinstruction/llms-full.txt), [SortingInstruction](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-datashaping/sortinginstruction/llms-full.txt) |
| [TXTextControl.DocumentServer.Fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/llms-full.txt) | Field adapters that give typed access to merge fields, IF fields, legacy form fields and content controls | [MergeField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/mergefield/llms-full.txt), [IfField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/iffield/llms-full.txt), [FormText](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-fields/formtext/llms-full.txt) |
| [TXTextControl.DocumentServer.Json](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-json/llms-full.txt) | The exceptions that [MergeJsonData](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver/mailmerge/mergejsondata-method/llms-full.txt) throws for JSON it can't parse | [ParserException](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-json/parserexception/llms-full.txt) |
| [TXTextControl.DocumentServer.PDF](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/llms-full.txt) | Methods for PDF documents: form fields and embedded files | [Forms](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/forms/llms-full.txt), [Attachments](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/attachments/llms-full.txt) |
| [TXTextControl.DocumentServer.PDF.AcroForms](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf-acroforms/llms-full.txt) | The AcroForm fields read from a PDF document: text fields, check boxes, radio buttons, list and combo boxes, buttons | [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/acroforms-formfield/llms-full.txt) |
| [TXTextControl.DocumentServer.PDF.Contents](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf-contents/llms-full.txt) | Lines of text found in a PDF document, with their page and position | [Lines](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-pdf/contents-lines/llms-full.txt) |
| [TXTextControl.DataVisualization](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/llms-full.txt) | Charts, barcodes and drawings placed in a document, with their layout and position | [ChartFrame](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/chartframe/llms-full.txt), [BarcodeFrame](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-datavisualization/barcodeframe/llms-full.txt) |
| [TXTextControl.Barcode](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/llms-full.txt) | The type and format of a barcode, rendered as SVG | [TXBarcodeCore](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-barcode/txbarcodecore/llms-full.txt) |
| [TXTextControl.Drawing](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/llms-full.txt) | The type and format of shapes in a drawing, rendered as SVG | [TXDrawingCore](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-drawing/txdrawingcore/llms-full.txt) |
| [TXTextControl.ServerVisualization](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/llms-full.txt) | Generators that render the text, the rulers, the status bar and the dialog boxes of a document as images, and pass user input to it | [TextViewGenerator](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/llms-full.txt) |
| [TXTextControl.Web.MVC](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/llms-full.txt) | The HTML helper that renders the Document Editor in an ASP.NET Core view, and its settings; package `TXTextControl.Web` | [TextControlSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/llms-full.txt), [HtmlHelperExtension](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/htmlhelperextension/llms-full.txt) |
| [TXTextControl.Web.MVC.DocumentViewer](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/llms-full.txt) | The HTML helper that renders the Document Viewer, and its settings for loading documents, PDF.js and signatures; package `TXTextControl.Web.DocumentViewer` | [DocumentViewerSettings](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer/documentviewersettings/llms-full.txt) |
| [TXTextControl.Web.MVC.DocumentViewer.Models](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/llms-full.txt) | The data the Document Viewer sends after a signature: the signed document, the signature boxes and the completed form fields | [SignatureData](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc-documentviewer-models/signaturedata/llms-full.txt) |
| [TXTextControl.Web](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/llms-full.txt) | An editor control for ASP.NET Web Forms on the .NET Framework, derived from `System.Web.UI.WebControls.WebControl`, its text parts and enumerations | [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/llms-full.txt) |
| [TXTextControl.DocumentServer.Web](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-web/llms-full.txt) | A document viewer control for ASP.NET Web Forms, derived from `System.Web.UI.WebControls.CompositeControl` | [DocumentViewer](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-web/documentviewer/llms-full.txt) |

The Windows Forms and WPF controls, `TextControl` and `WPF.TextControl`, belong to the desktop products and don't exist in TX Text Control .NET Server. Code in an ASP.NET Core application, a service or a console application works with `ServerTextControl`.

### Find the Right Namespace

| If you want to | Start in |
|---|---|
| Create, load, change, convert or save a document | `TXTextControl`, with [ServerTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/servertextcontrol/llms-full.txt) |
| Merge a template with JSON data, objects or ADO.NET data | `TXTextControl.DocumentServer`, with [MailMerge](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver/mailmerge/llms-full.txt) |
| Read the merge fields or form fields of a template | `TXTextControl.DocumentServer.Fields` |
| Read AcroForm fields, embedded files or lines of text from a PDF | `TXTextControl.DocumentServer.PDF` and the namespaces below it |
| Configure the Document Editor or the Document Viewer in an ASP.NET Core view | `TXTextControl.Web.MVC` or `TXTextControl.Web.MVC.DocumentViewer` |
| Receive a document signed in the Document Viewer | `TXTextControl.Web.MVC.DocumentViewer.Models` |

The pages of [Document Processing](https://docs.textcontrol.com/tx-text-control-dotnet-server/document-processing/llms-full.txt), [Mail Merge and Reporting](https://docs.textcontrol.com/tx-text-control-dotnet-server/mail-merge/llms-full.txt) and [PDF Processing](https://docs.textcontrol.com/tx-text-control-dotnet-server/pdf/llms-full.txt) show these classes at work and link each member they use to its reference page.

To find classes by what they do rather than by namespace, [Classes by Task](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/tasks/llms-full.txt) lists the classes and members for each task, such as tables, form fields, styles, mail merge or PDF forms, together with the base classes they share. [Exceptions](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/exceptions/llms-full.txt) describes what the class library throws and when.

### TX Text Control AI Packages

Beside the namespaces, the navigation lists the [TXTextControl.AI](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/txtextcontrol-ai/llms-full.txt) packages: `TXTextControl.AI` with `TXTextControl.AI.AspNetCore`, `TXTextControl.AI.Knowledge`, `TXTextControl.AI.LlamaServer`, `TXTextControl.AI.Mcp` and `TXTextControl.AI.McpServer`. They are prerelease packages on nuget.org, and each is documented by the README it ships with. [Text Control AI](https://docs.textcontrol.com/tx-text-control-dotnet-server/ai/text-control-ai/llms-full.txt) explains what each package does and how they work together.

### Pages in This Section

- [TXTextControl](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/llms-full.txt): `ServerTextControl` and the document model.
- [TXTextControl.DocumentServer](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver/llms-full.txt): `MailMerge` and its events.
- [TXTextControl.Web](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/llms-full.txt): the Web Forms editor control and its enumerations.
- [Classes by Task](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/tasks/llms-full.txt): the classes and members for each task, and the base classes they share.
- [Exceptions](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/exceptions/llms-full.txt): the exceptions of the class library and what throws them.

---

## In This Section

- [Exceptions](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/exceptions/llms-full.txt): Handle FilterException, LicenseLevelException, TextEditorException, FormulaException and argument exceptions of ServerTextControl and MailMerge in C#.
- [Classes by Task](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/tasks/llms-full.txt): Find the .NET classes and members for each task, from tables, fields and styles to MailMerge, PDF forms and XML, and base classes such as FrameBase.
- [TXTextControl.AI](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/dotnet-api/txtextcontrol-ai/llms-full.txt)

---

## Nearby

- **Previous:** [API Reference](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/llms-full.txt)
- **Next:** [TXTextControl namespace](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/llms-full.txt)
