# Editing Text

> Editing text in the WPF TextControl: selections, clipboard, undo, find and replace, dropped files and keys, with XAML and code-behind for your own commands.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Document Editor > Editing Text
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/llms-full.txt

---

## On This Page

- [How Editing Works in the WPF TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/#how-editing-works-in-the-wpf-textcontrol)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/#find-the-right-page)
- [Recommended Order](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/#recommended-order)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/#pages-in-this-section)

---

## In This Section

- [Clipboard Operations](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/clipboard/llms.txt): Put Cut, Copy and Paste into a WPF menu, enable items with CanCopy and CanPaste, paste one ClipboardFormat such as plain text and respect document permissions.
- [Drag and Drop](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/drag-drop/llms.txt): Set AllowDrag and AllowDrop in XAML, open files dropped from File Explorer and insert dropped images at the drop point in the WPF DragEnter and Drop handlers.
- [Keyboard Shortcuts](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/keyboard-shortcuts/llms.txt): Look up the built-in keys of the WPF TextControl, add Ctrl+F and Ctrl+H in a KeyDown handler and make Enter insert a line break with PreviewKeyDown.
- [Search and Replace](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/search-replace/llms.txt): Find and replace text in WPF: built-in dialog boxes, a Replace sidebar in XAML, Find with FindOptions, a Replace All loop with one undo step and all text parts.
- [Selections and Caret Position](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/selections/llms.txt): Use Select, Selection and InputPosition in a WPF TextControl to select and replace text, follow the caret and find lines and characters with their bounds.
- [Undo and Redo](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/undo-redo/llms.txt): Show undo and redo action names in a WPF menu, group edits into one step with BeginUndoAction and EndUndoAction, call ClearUndo and set IsUndoEnabled in XAML.

---

## Nearby

- **Previous:** [Document Properties](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/properties/llms.txt)
- **Next:** [Selections and Caret Position](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/selections/llms.txt)
