New Sample: Implementing a 'paste Special' Dialog Box
A Paste Special dialog for TX Text Control lets users select which clipboard format to insert: RTF, plain text, or Unicode text. Since MS Word stores all three simultaneously on copy, the dialog provides explicit control over which format is inserted into the TX Text Control document.

Copy and paste is probably one of the most common techniques to create letters, emails or other documents. Users are pasting pre-defined boilerplates, text passages from emails or content from several websites.
The Windows clipboard is able to store the content in several formats. If you copy a text from MS Word into the clipboard, it contains the formatted text as Rich Text Format (RTF), as plain text and Unicode text. Sometimes, it is required to paste the content with it's original formatting or just using plain text to apply your own formatting more easily.
This sample shows how to build a 'paste special' dialog that allows the user to choose the format that should be used to insert the clipboard text into TX Text Control.
Read more about this sample in our source code library:
Implementing a 'paste special' functionality for textual clipboard content
Related Posts
Resize Images to Fit into Page
Pasted screenshots that exceed the page width can be automatically scaled via the ImageCreated event in TX Text Control for Windows Forms. The handler converts twips to pixels, computes a ratio…
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…
TX Text Control Smart-Tags: Connecting the Controls with Ease
Visual Studio Smart-Tags in TX Text Control .NET for Windows Forms 15.0 provide design-time access to ViewMode, Dock, and Text properties. A built-in wizard automatically arranges ButtonBar,…
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…
