Compartilhar via


IEditorOperations3 Interface

Definition

Defines operations relating to the editor, in addition to operations defined by IEditorOperations2.

public interface class IEditorOperations3 : Microsoft::VisualStudio::Text::Operations::IEditorOperations2
public interface class IEditorOperations3 : Microsoft::VisualStudio::Text::Operations::IEditorOperations2
__interface IEditorOperations3 : Microsoft::VisualStudio::Text::Operations::IEditorOperations2
public interface IEditorOperations3 : Microsoft.VisualStudio.Text.Operations.IEditorOperations2
type IEditorOperations3 = interface
    interface IEditorOperations2
    interface IEditorOperations
Public Interface IEditorOperations3
Implements IEditorOperations2
Implements

Properties

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 (null 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)

Methods

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 on the line the caret is on if the selection is empty.

(Inherited from IEditorOperations)
ConvertTabsToSpaces()

Converts tabs to spaces in the selection, or on the line the caret is on if the selection is empty.

(Inherited from IEditorOperations)
CopySelection()

Copies the selected text to the clipboard.

(Inherited from IEditorOperations)
CutFullLine()

If there is a selection present, deletes all 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, or 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)
DuplicateSelection()

Duplicates the current selection, or the whole line (if there is no selection), without changing the clipboard.

ExtendSelection(Int32)

Extends the current selection span to the new selection end.

(Inherited from IEditorOperations)
GetWhitespaceForVirtualSpace(VirtualSnapshotPoint)

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(Int32)

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(String)

Inserts a file on disk into the text buffer.

(Inherited from IEditorOperations)
InsertFinalNewLine()

Inserts a new line at the end of the document if it's not there yet.

InsertNewLine()

Inserts a new line at the current caret position.

(Inherited from IEditorOperations)
InsertProvisionalText(String)

Inserts the given text at the current caret position as provisional text.

(Inherited from IEditorOperations)
InsertText(String)

Inserts the given text at the current caret position.

(Inherited from IEditorOperations)
InsertTextAsBox(String, VirtualSnapshotPoint, VirtualSnapshotPoint)

Inserts the given 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(ITextViewLine, Double, Boolean)

Moves the caret to the given textLine at the given horizontalOffset.

(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(Boolean)

Moves the caret one line down.

(Inherited from IEditorOperations)
MoveLineUp(Boolean)

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.

(Inherited from IEditorOperations2)
MoveSelectedLinesUp()

Moves the selected lines up above the line bordering the selection on top. Moving up from the top 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.

(Inherited from IEditorOperations2)
MoveToBottomOfView(Boolean)

Moves the caret to the last fully-visible line of the view.

(Inherited from IEditorOperations)
MoveToEndOfDocument(Boolean)

Moves the caret at the end of the document.

(Inherited from IEditorOperations)
MoveToEndOfLine(Boolean)

Moves the caret to the end of the line.

(Inherited from IEditorOperations)
MoveToHome(Boolean)

Moves the caret to the first text column on the line; if the caret is already at the first text column or there is no text, move the caret to the first column on the line.

(Inherited from IEditorOperations)
MoveToLastNonWhiteSpaceCharacter(Boolean)

Moves the caret to just before the last non-white space character in the line.

(Inherited from IEditorOperations)
MoveToNextCharacter(Boolean)

Moves the caret to the next character.

(Inherited from IEditorOperations)
MoveToNextWord(Boolean)

Moves the caret to the next word.

(Inherited from IEditorOperations)
MoveToPreviousCharacter(Boolean)

Moves the caret to the previous character.

(Inherited from IEditorOperations)
MoveToPreviousWord(Boolean)

Moves the caret to the previous word.

(Inherited from IEditorOperations)
MoveToStartOfDocument(Boolean)

Moves the caret to the start of the document.

(Inherited from IEditorOperations)
MoveToStartOfLine(Boolean)

Moves the caret to the first column on the current line.

(Inherited from IEditorOperations)
MoveToStartOfLineAfterWhiteSpace(Boolean)

Moves the caret to the start of the line after all white space.

(Inherited from IEditorOperations)
MoveToStartOfNextLineAfterWhiteSpace(Boolean)

Moves the caret to the start of the next line after all white space.

(Inherited from IEditorOperations)
MoveToStartOfPreviousLineAfterWhiteSpace(Boolean)

Moves the caret to the start of the previous line after all white space.

(Inherited from IEditorOperations)
MoveToTopOfView(Boolean)

Moves the caret to the first fully-visible line of the view.

(Inherited from IEditorOperations)
NormalizeLineEndings(String)

Replaces all line endings that do not match replacement with replacement.

(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(Boolean)

Moves the caret one page down.

(Inherited from IEditorOperations)
PageUp(Boolean)

Moves the caret one page up.

(Inherited from IEditorOperations)
Paste()

Pastes text from the clipboard to the text buffer.

(Inherited from IEditorOperations)
ReplaceAllMatches(String, String, Boolean, Boolean, Boolean)

Replaces all matching occurrences of the given string.

(Inherited from IEditorOperations)
ReplaceSelection(String)

Replaces the text selection with the new text.

(Inherited from IEditorOperations)
ReplaceText(Span, String)

Replaces text from the given span with the new 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, if it is scrolled off the page, to the first fully-visible line in the view.

(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()

Scroll sthe 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, TextSelectionMode, Nullable<EnsureSpanVisibleOptions>)

Selects from the given anchor point to active point, moving the caret to the new active point of the selection. Additionally, ensure the selection is in the given selection mode, and make the selected span visible.

(Inherited from IEditorOperations)
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint, TextSelectionMode)

Selects from the given anchor point to active point, moving the caret to the new active point of the selection. Additionally, ensure the selection is in the given selection mode, and make the selected span visible.

(Inherited from IEditorOperations)
SelectAndMoveCaret(VirtualSnapshotPoint, VirtualSnapshotPoint)

Selects from the given anchor point to active point, moving the caret to the new active point of the selection. The selected span will be made 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(ITextViewLine, Boolean)

Selects the given line.

(Inherited from IEditorOperations)
SelectNextSibling(Boolean)

Selects the next sibling.

(Inherited from IEditorOperations)
SelectPreviousSibling(Boolean)

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. Transposes the first two characters when the cursor is at the start of the line. Transposes the last two characters when the cursor is at the end of the line.

(Inherited from IEditorOperations)
TransposeLine()

Transposes the line containing the cursor with the next line. Transposes the last two lines when the cursor at the last line.

(Inherited from IEditorOperations)
TransposeWord()

Transposes the current word with the next one. White space and punctuation are not treated as words.

(Inherited from IEditorOperations)
TrimTrailingWhiteSpace()

Deletes all white space from ends of the selected lines.

Unindent()

If there is a multi-line selection, unindents the selection. If there is a single line selection, removes up to a tab's worth of white space from before the start of the selection. If there is no selection, removes up to a tab's worth of white space from before the caret position.

(Inherited from IEditorOperations)
Untabify()

Converts the leading white space to spaces of all lines touched by the selection and 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(Double)

Applies the given zoomLevel to the text view

(Inherited from IEditorOperations)

Applies to