An often requested feature of TX Text Control is a dynamically created table of contents (TOC) like offered in MS Word. Based on the style interface of TX Text Control, this is possible and not that tricky.
We just published a new sample that shows how to create a basic table of contents using TX Text Control.
This sample implements a simple class to parse the text for potential entries in order to create the table of contents. Additionally, the toc class provides some public values to configure the table of contents.
Download the sample from our GitHub repository:
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 2017 or better
- TX Text Control .NET for Windows Forms (trial sufficient)