Products Technologies Demo Docs Blog Support Company

X13: Use SubTextParts to Save Formatted Comments

MailMerge uses the new SubTextParts to mark repeating blocks in a reporting template. But this new TX Text Control document element can be used for other applications as well. Basically, a SubTextPart is a range of text defined through a start character index and a length. This element can itself contain all other elements including text fields, tables and images. A SubTextPart can be programmatically identified through a name or an ID and it can be highlighted on screen either permanently…

X13: Use SubTextParts to Save Formatted Comments

MailMerge uses the new SubTextParts to mark repeating blocks in a reporting template. But this new TX Text Control document element can be used for other applications as well. Basically, a SubTextPart is a range of text defined through a start character index and a length. This element can itself contain all other elements including text fields, tables and images. A SubTextPart can be programmatically identified through a name or an ID and it can be highlighted on screen either permanently or only when it contains the current text input position.

Using the name property, it is possible to store additional information. In the following animated screenshot, a sample application is shown that implements a comments system where a serialized comment object is stored in a SubTextPart.

X13: Use SubTextParts to store comments

The comment properties such as author, date and the formatted RTF string is stored as XML in the Name property of the SubTextPart.

Stay tuned for more features of TX Text Control X13!

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

ASP.NETWindows FormsWPF

TX Text Control 33.0 SP3 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 3 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…


ASP.NETASP.NET CoreDocument Viewer

High-Performance Text Replacement in Large DOCX Files using C# .NET

Learn how to efficiently replace text in large DOCX files using C# .NET and the ServerTextControl component from Text Control. This article demonstrates the performance benefits of using the…


ASP.NETASP.NET CoreDocument Viewer

Document Viewer 33.2.1 Released: New Event and Bug Fixes

This service pack includes important bug fixes and improvements to enhance the stability and performance of the Document Viewer. In addition, a new event has been introduced to provide developers…


ASP.NETAccessibilityASP.NET Core

Upcoming Support for PDF/UA Compliance and Tagged PDF Generation in Version 34.0

We are happy to announce that version 34.0 will support PDF/UA compliance and the creation of tagged PDF documents. This significant update demonstrates our ongoing commitment to accessibility by…


ASP.NETWindows FormsWPF

TX Text Control 33.0 SP2 is Now Available: What's New in the Latest Version

TX Text Control 33.0 Service Pack 2 is now available, offering important updates and bug fixes for all platforms. If you use TX Text Control in your document processing applications, this service…