IEditorOperations2 Interface
Defines operations relating to the editor.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Public Interface IEditorOperations2 _
Inherits IEditorOperations
public interface IEditorOperations2 : IEditorOperations
public interface class IEditorOperations2 : IEditorOperations
type IEditorOperations2 =
interface
interface IEditorOperations
end
public interface IEditorOperations2 extends IEditorOperations
The IEditorOperations2 type exposes the following members.
Properties
Name | Description | |
---|---|---|
CanCut | Determines whether a cut operation is possible. (Inherited from IEditorOperations.) | |
CanDelete | Determines whether a delete operation is possible. (Inherited from IEditorOperations.) | |
CanPaste | Determines whether a paste operation is possible. (Inherited from IEditorOperations.) | |
Options | Gets the options specific to this view. (Inherited from IEditorOperations.) | |
ProvisionalCompositionSpan | Gets the span of the current provisional composition, or nulla null reference (Nothing in Visual Basic) if there is no provisional composition). (Inherited from IEditorOperations.) | |
SelectedText | Gets the selected text. (Inherited from IEditorOperations.) | |
TextView | Gets the text view on which these operations work. (Inherited from IEditorOperations.) |
Top
Methods
Name | Description | |
---|---|---|
AddAfterTextBufferChangePrimitive | Adds an ITextUndoPrimitive to the ITextUndoHistory for the buffer that will revert the selection to the current state when it is redone. (Inherited from IEditorOperations.) | |
AddBeforeTextBufferChangePrimitive | Adds an ITextUndoPrimitive to the ITextUndoHistory for the buffer that will revert the selection to the current state when it is undone. (Inherited from IEditorOperations.) | |
Backspace | Deletes a character to the left of the current caret. (Inherited from IEditorOperations.) | |
Capitalize | Converts all the characters in the selection to lowercase, then converts the first character in each word in the selection to uppercase. If the selection is empty, then it makes the next character uppercase. (Inherited from IEditorOperations.) | |
ConvertSpacesToTabs | Converts spaces to tabs in the selection, or, if the selection is empty, on the line the caret is on. (Inherited from IEditorOperations.) | |
ConvertTabsToSpaces | Converts tabs to spaces in the selection, or, if the selection is empty, on the line the caret is on. (Inherited from IEditorOperations.) | |
CopySelection | Copies the selected text to the clipboard. (Inherited from IEditorOperations.) | |
CutFullLine | If there is a selection, deletes all the lines touched by the selection, including line break characters, and copies the text to the clipboard. Otherwise, deletes the line the caret is on, including the line break characters, and copies the text to the clipboard. (Inherited from IEditorOperations.) | |
CutSelection | Cuts the selected text. (Inherited from IEditorOperations.) | |
DecreaseLineIndent | If there is a multi-line selection, removes indentation from every line in the selection, otherwise removes indentation from the line the caret is on. (Inherited from IEditorOperations.) | |
Delete | Deletes the selection if there is one. If there is no selection, deletes the next character in the buffer if one exists. (Inherited from IEditorOperations.) | |
DeleteBlankLines | Deletes all empty lines or lines that contain only white space in the selection. (Inherited from IEditorOperations.) | |
DeleteFullLine | If there is a selection, deletes all the lines touched by the selection, including line break characters. Otherwise, deletes the line the caret is on, including the line break characters. (Inherited from IEditorOperations.) | |
DeleteHorizontalWhiteSpace | Deletes all white space from the beginnings and ends of the selected lines, and trims internal white space. (Inherited from IEditorOperations.) | |
DeleteToBeginningOfLine | Deletes the line the caret is on, up to the previous line break character and the selection, if present. (Inherited from IEditorOperations.) | |
DeleteToEndOfLine | Deletes the line the caret is on, up to the line break character and the selection, if present. (Inherited from IEditorOperations.) | |
DeleteWordToLeft | Deletes the word to the left of the current caret position. (Inherited from IEditorOperations.) | |
DeleteWordToRight | Deletes the word to the right of the current caret position. (Inherited from IEditorOperations.) | |
ExtendSelection | Extends the current selection span to the specified position. (Inherited from IEditorOperations.) | |
GetWhitespaceForVirtualSpace | Gets a string composed of whitespace characters that would be inserted to fill the gap between a given VirtualSnapshotPoint and the closest SnapshotPoint on the same line. (Inherited from IEditorOperations.) | |
GotoLine | Moves the caret to the start of the specified line. (Inherited from IEditorOperations.) | |
IncreaseLineIndent | If there is a multi-line selection, adds indentation to every line in the selection, otherwise adds indentation to the line the caret is on. (Inherited from IEditorOperations.) | |
Indent | If there is a multi-line selection indents the selection, otherwise inserts a tab at the caret location. (Inherited from IEditorOperations.) | |
InsertFile | Inserts the contents of a file on disk into the text buffer. (Inherited from IEditorOperations.) | |
InsertNewLine | Inserts a new line at the current caret position. (Inherited from IEditorOperations.) | |
InsertProvisionalText | Inserts the given text at the current caret position as provisional text. (Inherited from IEditorOperations.) | |
InsertText | Inserts the given text at the current caret position. (Inherited from IEditorOperations.) | |
InsertTextAsBox | Inserts the specified text at the current caret position as a box. (Inherited from IEditorOperations.) | |
MakeLowercase | Converts uppercase letters to lowercase in the selection. If the selection is empty, makes the next character lowercase. (Inherited from IEditorOperations.) | |
MakeUppercase | Converts lowercase letters to uppercase in the selection. If the selection is empty, makes the next character uppercase. (Inherited from IEditorOperations.) | |
MoveCaret | Moves the caret to the given line at the given offset. (Inherited from IEditorOperations.) | |
MoveCurrentLineToBottom | Moves the current line to the bottom of the view. (Inherited from IEditorOperations.) | |
MoveCurrentLineToTop | Moves the current line to the top of the view. (Inherited from IEditorOperations.) | |
MoveLineDown | Moves the caret one line down. (Inherited from IEditorOperations.) | |
MoveLineUp | Moves the caret one line up. (Inherited from IEditorOperations.) | |
MoveSelectedLinesDown | Moves the selected lines below the line bordering the selection on the bottom. Moving down from the bottom of the file will return true, however no changes will be made. Collapsed regions being moved, and being moved over, will remain collapsed. Moves involving readonly regions will result in no changes being made. | |
MoveSelectedLinesUp | Moves the selected lines up above the line bordering the selection on top. Moving up from the top of the file returns true, but no changes are made. Collapsed regions being moved, and being moved over, remain collapsed. Moves involving read-only regions result in no changes being made. | |
MoveToBottomOfView | Moves the caret to the last fully-visible line of the view. (Inherited from IEditorOperations.) | |
MoveToEndOfDocument | Moves the caret at the end of the document. (Inherited from IEditorOperations.) | |
MoveToEndOfLine | Moves the caret to the end of the line. (Inherited from IEditorOperations.) | |
MoveToHome | Moves the caret to the first text column on the line. (Inherited from IEditorOperations.) | |
MoveToLastNonWhiteSpaceCharacter | Moves the caret to just before the last non-white space character in the line. (Inherited from IEditorOperations.) | |
MoveToNextCharacter | Moves the caret to the next character. (Inherited from IEditorOperations.) | |
MoveToNextWord | Moves the caret to the next word. (Inherited from IEditorOperations.) | |
MoveToPreviousCharacter | Moves the caret to the previous character. (Inherited from IEditorOperations.) | |
MoveToPreviousWord | Moves the caret to the previous word. (Inherited from IEditorOperations.) | |
MoveToStartOfDocument | Moves the caret to the start of the document. (Inherited from IEditorOperations.) | |
MoveToStartOfLine | Moves the caret to the start of the line. (Inherited from IEditorOperations.) | |
MoveToStartOfLineAfterWhiteSpace | Moves the caret to the first non-whitespace character of the line. (Inherited from IEditorOperations.) | |
MoveToStartOfNextLineAfterWhiteSpace | Moves the caret to the first non-whitespace character in the next line. (Inherited from IEditorOperations.) | |
MoveToStartOfPreviousLineAfterWhiteSpace | Moves the caret to the first non-whitespace character on the previous line. (Inherited from IEditorOperations.) | |
MoveToTopOfView | Moves the caret to the first fully-visible line of the view. (Inherited from IEditorOperations.) | |
NormalizeLineEndings | Replaces all the line endings that do not match the specified string. (Inherited from IEditorOperations.) | |
OpenLineAbove | Inserts a new line at the start of the line the caret is on. (Inherited from IEditorOperations.) | |
OpenLineBelow | Inserts a new line at the end of the line the caret is on. (Inherited from IEditorOperations.) | |
PageDown | Moves the caret one page down. (Inherited from IEditorOperations.) | |
PageUp | Moves the caret one page up. (Inherited from IEditorOperations.) | |
Paste | Pastes text from the clipboard to the text buffer. (Inherited from IEditorOperations.) | |
ReplaceAllMatches | Replaces all matching occurrences of the given string. (Inherited from IEditorOperations.) | |
ReplaceSelection | Replaces the text selection with the specified text. (Inherited from IEditorOperations.) | |
ReplaceText | Replaces text from the specified span with the specified text. (Inherited from IEditorOperations.) | |
ResetSelection | Resets any selection in the text. (Inherited from IEditorOperations.) | |
ScrollColumnLeft | Scrolls the view one column to the left. (Inherited from IEditorOperations.) | |
ScrollColumnRight | Scrolls the view one column to the right. (Inherited from IEditorOperations.) | |
ScrollDownAndMoveCaretIfNecessary | Scrolls the view down by one line and repositions the caret to the first fully-visible line in the view, if it is scrolled off the page. (Inherited from IEditorOperations.) | |
ScrollLineBottom | Scrolls the line the caret is on, so that it is the last fully-visible line in the view. (Inherited from IEditorOperations.) | |
ScrollLineCenter | Scrolls the line the caret is on, so that it is centered in the view. (Inherited from IEditorOperations.) | |
ScrollLineTop | Scrolls the line the caret is on, so that it is the first fully-visible line in the view. (Inherited from IEditorOperations.) | |
ScrollPageDown | Scrolls the view down a page without moving the caret. (Inherited from IEditorOperations.) | |
ScrollPageUp | Scrolls the view up a page without moving the caret. (Inherited from IEditorOperations.) | |
ScrollUpAndMoveCaretIfNecessary | Scrolls the view up by one line and repositions the caret, if it is scrolled off the page, to the last fully-visible line in the view. (Inherited from IEditorOperations.) | |
SelectAll | Selects all text. (Inherited from IEditorOperations.) | |
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint) | Selects from the given anchor point to the active point, moving the caret to the new active point of the selection. The selected span will be made visible. (Inherited from IEditorOperations.) | |
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode) | Selects from the specified anchor point to the active point, moving the caret to the new active point of the selection, and ensuring that the selection is in the specified selection mode, and making the selected span visible. (Inherited from IEditorOperations.) | |
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>) | Selects from the given anchor point to active point, moving the caret to the new active point of the selection, ensuring that the selection is in the specified selection mode and making the selected span visible. (Inherited from IEditorOperations.) | |
SelectCurrentWord | Selects the current word. (Inherited from IEditorOperations.) | |
SelectEnclosing | Selects the enclosing parent. (Inherited from IEditorOperations.) | |
SelectFirstChild | Selects the first child. (Inherited from IEditorOperations.) | |
SelectLine | Selects the specified line. (Inherited from IEditorOperations.) | |
SelectNextSibling | Selects the next sibling. (Inherited from IEditorOperations.) | |
SelectPreviousSibling | Selects the previous sibling. (Inherited from IEditorOperations.) | |
SwapCaretAndAnchor | Swaps the caret from its current position to the other end of the selection. (Inherited from IEditorOperations.) | |
Tabify | Converts the leading white space to tabs on all lines touched by the selection and caret. (Inherited from IEditorOperations.) | |
ToggleCase | Switches the case of each character in the selection. If the selection is empty, changes the case of the next character. (Inherited from IEditorOperations.) | |
TransposeCharacter | Transposes the character at the cursor with the next character. (Inherited from IEditorOperations.) | |
TransposeLine | Transposes the line containing the cursor with the next line. (Inherited from IEditorOperations.) | |
TransposeWord | Transposes the current word with the next one. (Inherited from IEditorOperations.) | |
Unindent | Unindents the text. (Inherited from IEditorOperations.) | |
Untabify | Converts the leading whitespace to spaces on all lines touched by the selection and the caret. (Inherited from IEditorOperations.) | |
ZoomIn | Zooms in to the text view by a scaling factor of 10%. (Inherited from IEditorOperations.) | |
ZoomOut | Zooms out of the text view by a scaling factor of 10%. (Inherited from IEditorOperations.) | |
ZoomTo | Applies the specified zoom level to the text view. (Inherited from IEditorOperations.) |
Top