Provides the base requirements for an object that performs text change actions in an IEditor
Methods
Backspace()
Deletes the currently selected text if text is selected; otherwise, deletes the previous character.
BackspaceToPreviousWord()
Backspaces and deletes text to the beginning of the previous word.
ChangeCharacterCasing(CharacterCasing)
Changes the character casing of the selected text in the view.
Parameter | Type | Description |
---|---|---|
casing | Character |
A Character |
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 ILine
ConvertSpacesToTabs()
Converts all spaces in the selection to an equivalent number of tabs.
ConvertTabsToSpaces()
Converts all tabs in the selection to an equivalent number of spaces.
Delete()
Deletes the currently selected text if text is selected; otherwise, deletes the next character.
DeleteBlankLines()
Deletes the blank lines in the selected text, or the current view line if no text is selected and it is blank.
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.
DeleteLine()
Deletes the currently active view line.
DeleteToLineEnd()
Deletes the currently selected text through to the end of the current view line.
DeleteToLineStart()
Deletes the currently selected text through to the start of the current view line.
DeleteToNextWord()
Deletes text to the beginning of the next word.
Duplicate()
Duplicates the current document line if there is no selection, or the selected text if there is a selection.
FormatDocument()
Formats the entire document, using the ILine
FormatSelection()
Formats the currently selected lines, using the IText
Indent()
Indents the currently selected lines.
InsertLineBreak()
Inserts a line break into the current selection ranges.
MoveSelectedLinesDown()
Moves the selected lines down.
MoveSelectedLinesUp()
Moves the selected lines up.
OpenLineAbove()
Inserts a new line above the current selection ranges.
OpenLineBelow()
Inserts a new line below the current selection ranges.
Outdent()
Outdents the currently selected lines.
PerformInsertTyping(string)
Simulates the typing of text, using insert mode.
Parameter | Type | Description |
---|---|---|
text | string | The text that was typed. |
PerformOverwriteTyping(string)
Simulates the typing of text, using overwrite mode.
Parameter | Type | Description |
---|---|---|
text | string | The text that was typed. |
PerformTyping(string)
Simulates the typing of text, using the current overwrite mode setting.
Parameter | Type | Description |
---|---|---|
text | string | The text that was typed. |
TabifySelectedLines()
Converts spaces at the beginning of the active view lines to tabs.
ToggleCharacterCasing()
Toggles, or inverts, the character casing of the selected text.
Remarks
If no text is currently selected, only the character after the caret is changed.
TransposeCharacters()
Transposes the characters before and after the caret.
TransposeLines()
Transposes the current line with the next line.
TransposeWords()
Transposes the current word with the next word.
TrimAllTrailingWhitespace()
Trims the trailing whitespace off all the lines in the document.
TrimTrailingWhitespace()
Trims the trailing whitespace off all the lines in the selected text, or the current document line if no text is selected.
UncommentLines()
Uncomments the currently selected lines, using the ILine
UntabifySelectedLines()
Converts tabs at the beginning of the active view lines to spaces.