In This Article

IEditorViewTextChangeActions Interface

Provides the base requirements for an object that performs text change actions in an IEditorView.

public interface IEditorViewTextChangeActions

Methods

Backspace()

Deletes the currently selected text if text is selected; otherwise, deletes the previous character.

void Backspace()

BackspaceToPreviousWord()

Backspaces and deletes text to the beginning of the previous word.

void BackspaceToPreviousWord()

ChangeCharacterCasing(CharacterCasing)

Changes the character casing of the selected text in the view.

void ChangeCharacterCasing(CharacterCasing casing)
Parameter Type Description
casing CharacterCasing

A CharacterCasing indicating the character case to change to.

Remarks

If no text is currently selected in the view, only the character after the caret is changed. A casing value of CharacterCasing.Normal will capitalize the first letter of each word.

CommentLines()

Comments the currently selected lines, using the ILineCommenter specified by the current ISyntaxLanguage.

void CommentLines()

ConvertSpacesToTabs()

Converts all spaces in the selection to an equivalent number of tabs.

void ConvertSpacesToTabs()

ConvertTabsToSpaces()

Converts all tabs in the selection to an equivalent number of spaces.

void ConvertTabsToSpaces()

Delete()

Deletes the currently selected text if text is selected; otherwise, deletes the next character.

void Delete()

DeleteBlankLines()

Deletes the blank lines in the selected text, or the current view line if no text is selected and it is blank.

void DeleteBlankLines()

Remarks

If there is no selection and the current line is not blank, any blank view lines immediately before the current view line will be deleted.

DeleteHorizontalWhitespace()

Deletes the horizontal whitespace within the current selection.

void DeleteHorizontalWhitespace()

DeleteLine()

Deletes the currently active view line.

void DeleteLine()

DeleteToLineEnd()

Deletes the currently selected text through to the end of the current view line.

void DeleteToLineEnd()

DeleteToLineStart()

Deletes the currently selected text through to the start of the current view line.

void DeleteToLineStart()

DeleteToNextWord()

Deletes text to the beginning of the next word.

void DeleteToNextWord()

Duplicate()

Duplicates the current document line if there is no selection, or the selected text if there is a selection.

void Duplicate()

FormatDocument()

Formats the entire document, using the ILineCommenter specified by the current ISyntaxLanguage..

void FormatDocument()

FormatSelection()

Formats the currently selected lines, using the ITextFormatter specified by the current ISyntaxLanguage..

void FormatSelection()

Indent()

Indents the currently selected lines.

void Indent()

InsertLineBreak()

Inserts a line break into the current selection ranges.

void InsertLineBreak()

MoveSelectedLinesDown()

Moves the selected lines down.

void MoveSelectedLinesDown()

MoveSelectedLinesUp()

Moves the selected lines up.

void MoveSelectedLinesUp()

OpenLineAbove()

Inserts a new line above the current selection ranges.

void OpenLineAbove()

OpenLineBelow()

Inserts a new line below the current selection ranges.

void OpenLineBelow()

Outdent()

Outdents the currently selected lines.

void Outdent()

PerformInsertTyping(string)

Simulates the typing of text, using insert mode.

void PerformInsertTyping(string text)
Parameter Type Description
text string

The text that was typed.

PerformOverwriteTyping(string)

Simulates the typing of text, using overwrite mode.

void PerformOverwriteTyping(string text)
Parameter Type Description
text string

The text that was typed.

PerformTyping(string)

Simulates the typing of text, using the current overwrite mode setting.

void PerformTyping(string text)
Parameter Type Description
text string

The text that was typed.

TabifySelectedLines()

Converts spaces at the beginning of the active view lines to tabs.

void TabifySelectedLines()

ToggleCharacterCasing()

Toggles, or inverts, the character casing of the selected text.

void ToggleCharacterCasing()

Remarks

If no text is currently selected, only the character after the caret is changed.

TransposeCharacters()

Transposes the characters before and after the caret.

void TransposeCharacters()

TransposeLines()

Transposes the current line with the next line.

void TransposeLines()

TransposeWords()

Transposes the current word with the next word.

void TransposeWords()

TrimAllTrailingWhitespace()

Trims the trailing whitespace off all the lines in the document.

void TrimAllTrailingWhitespace()

TrimTrailingWhitespace()

Trims the trailing whitespace off all the lines in the selected text, or the current document line if no text is selected.

void TrimTrailingWhitespace()

UncommentLines()

Uncomments the currently selected lines, using the ILineCommenter specified by the current ISyntaxLanguage.

void UncommentLines()

UntabifySelectedLines()

Converts tabs at the beginning of the active view lines to spaces.

void UntabifySelectedLines()