TX Text Control 16.0: New TextPartCollection
TX Text Control .NET for WPF 16.0 and TX Text Control .NET for Windows Forms 16.0 come with a new collection: TextPartCollection. It is a kind of meta collection that allows the iteration of text parts such as tables or text fields in all document parts (main text, headers, footers or text frames). This is useful to access all available collections via one standard interface. The following diagram shows the TextParts in detail: Consider the following application: A document template consists…

TX Text Control .NET for WPF 16.0 and TX Text Control .NET for Windows Forms 16.0 come with a new collection: TextPartCollection. It is a kind of meta collection that allows the iteration of text parts such as tables or text fields in all document parts (main text, headers, footers or text frames). This is useful to access all available collections via one standard interface. The following diagram shows the TextParts in detail:
Consider the following application: A document template consists of ApplicationFields in the main text, in headers and footers and in several text frames. And you want to replace the text in all of these fields. With previous versions, you had to iterate through all sections, it's contained headers and footers and throught all text frames separately. Now, just one loop is required to get access to all ApplicationFields:
foreach (object obj in textControl1.TextParts)
{
foreach (ApplicationField field in ((IFormattedText)obj).ApplicationFields)
{
field.Text = "New text";
}
}
It's that easy. The IFormattedText interface contains properties and methods common to all text parts in a TX Text Control document like in this case the ApplicationFieldCollection. Test it on your own and download a trial version today:
TX Text Control Trial VersionsRelated Posts
Introducing TX Text Control 34.0: Your Next Leap in Document Processing.
We are happy to announce the release of TX Text Control 34.0. This version is packed with new features and enhancements that will elevate your document processing experience. This version…
PDF/UA vs. PDF/A-3a: Which Format Should You Use for Your Business Application?
In this blog post, we will explore the differences between PDF/UA and PDF/A-3a, helping you choose the right format for your business needs. We will discuss the key features, benefits, and use…
Validating PDF/UA Documents in .NET C#
Creating accessible and compliant PDF documents is becoming an increasingly important requirement across industries. In this blog post, we explore how to validate PDF/UA documents using Text…
Sneak Peek: TX Text Control 34.0 Coming November 2025
We are excited to announce the upcoming release of TX Text Control 34.0, scheduled for November 2025. This update brings a host of new features and improvements to enhance your document processing…
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…

