RoutedUICommands in WPF Syntax Editor

7 May 20211 minute to read

EditCommands members

The EditControl ships with a variety of built-in RoutedUICommands to perform various editing operations in it using commands. The EditCommands class in the Edit WPF library contains lot of necessary commands. The following are the list of RoutedUICommands available in the EditControl.

RoutedUICommand

Description

Backspace

Performs backspace key operations.

Collapse All

Collapses all the blocks in the EditControl text.

CommentSelection

Selects comments or individual lines based on the selected language.

Copy

Performs copying of text.

Cut

Cuts the text.

DecreaseIndent

Decreases the indent of individual or selected lines.

Delete

Performs delete key operation.

ExpandAll

Expands all the blocks in the EditControl text.

Find

Opens the find and replace window with the selected quick find tab.

FindAllReferences

Finds all the occurrences of the specified text.

IncreaseIndent

Increases the indent of individual or selected lines.

New

Resets all the text in the EditControl.

Open

Opens an existing file and displays the OpenFileDialog to select the file.

Paste

Paste the copied text to the clipboard.

Redo

Performs redo operations.

Replace

Replaces the text specified in the Find What field with the field in Find and Replace window.

Save

Saves the text in the EditControl to a file. It displays the SaveFileDialog to enter the name and location to save the file.

Search

Finds the text specified in the last search, without opening the Find and Replace window.

SearchInSelected

Finds the text specified in the last search within the selected text, without opening the Find and Replace window.

SelectAll

Selects all the text in EditControl.

ShowIntellisense

Displays the provided IntellisensePopup if the IntelliSense items are not empty.

UncommentSelection

Removes the comment Lexem from individual or selected lines.

Undo

Performs undo operations.