Append Files to the Current Document
TX Text Control .NET for Windows Forms replaces the ActiveX CurSelection parameter with the Selection class for document merging. The Selection.Load method inserts content at the current selection point, while Selection.Save exports only the selected text from a document.

In the last days, many customers who are in the process of porting their TX Text Control ActiveX applications to .NET have asked me how to merge different files into one document.
In the TX Text Control ActiveX, there was a parameter (CurSelection) in the Load method which specifies, whether the loaded document replaces the content or whether it should be appended.
In TX Text Control .NET for Windows Forms, there is no such parameter, but a new class: the Selection class.
This class can be used to manipulate the currently selected text. Additionally, this class contains a Load and Save method to load documents into a selection or to save only the selected text:
TextControl1.Selection.Load(path, StreamType)Related Posts
Create a Table of Contents in Windows Forms using C#
This article explains how to create a table of contents in Windows Forms using the ribbon or programmatically. Creating a table of contents is required to organize large documents.
Two Ways to Restart Numbered Lists in TX Text Control
In TX Text Control, numbered lists are continued by default and need to be reset when required. There is more than one way if you want to restart numbered lists in a document. In this article, two…
Paste Special: The Easy Way to Implement
TX Text Control version 15.0 introduced a ClipboardFormat parameter on the Paste method, enabling native Paste Special functionality. The GetClipboardFormats method returns all available clipboard…
How to Remove All Section Breaks in a Document?
TX Text Control 15.0 adds per-section page column support alongside existing section breaks. To remove all section breaks programmatically, iterate through SectionCollection using…
Batch Printing: How to Print Documents in One Print Job
Batch printing multiple documents as a single print job using TX Text Control relies on a .NET PrintDocument with PrintPage and QueryPageSettings events. Each page is rendered individually via the…
