다음을 통해 공유


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
Public property CanCut Determines whether a cut operation is possible. (Inherited from IEditorOperations.)
Public property CanDelete Determines whether a delete operation is possible. (Inherited from IEditorOperations.)
Public property CanPaste Determines whether a paste operation is possible. (Inherited from IEditorOperations.)
Public property Options Gets the options specific to this view. (Inherited from IEditorOperations.)
Public property 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.)
Public property SelectedText Gets the selected text. (Inherited from IEditorOperations.)
Public property TextView Gets the text view on which these operations work. (Inherited from IEditorOperations.)

Top

Methods

  Name Description
Public method 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.)
Public method 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.)
Public method Backspace Deletes a character to the left of the current caret. (Inherited from IEditorOperations.)
Public method 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.)
Public method ConvertSpacesToTabs Converts spaces to tabs in the selection, or, if the selection is empty, on the line the caret is on. (Inherited from IEditorOperations.)
Public method ConvertTabsToSpaces Converts tabs to spaces in the selection, or, if the selection is empty, on the line the caret is on. (Inherited from IEditorOperations.)
Public method CopySelection Copies the selected text to the clipboard. (Inherited from IEditorOperations.)
Public method 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.)
Public method CutSelection Cuts the selected text. (Inherited from IEditorOperations.)
Public method 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.)
Public method 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.)
Public method DeleteBlankLines Deletes all empty lines or lines that contain only white space in the selection. (Inherited from IEditorOperations.)
Public method 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.)
Public method DeleteHorizontalWhiteSpace Deletes all white space from the beginnings and ends of the selected lines, and trims internal white space. (Inherited from IEditorOperations.)
Public method DeleteToBeginningOfLine Deletes the line the caret is on, up to the previous line break character and the selection, if present. (Inherited from IEditorOperations.)
Public method DeleteToEndOfLine Deletes the line the caret is on, up to the line break character and the selection, if present. (Inherited from IEditorOperations.)
Public method DeleteWordToLeft Deletes the word to the left of the current caret position. (Inherited from IEditorOperations.)
Public method DeleteWordToRight Deletes the word to the right of the current caret position. (Inherited from IEditorOperations.)
Public method ExtendSelection Extends the current selection span to the specified position. (Inherited from IEditorOperations.)
Public method 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.)
Public method GotoLine Moves the caret to the start of the specified line. (Inherited from IEditorOperations.)
Public method 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.)
Public method Indent If there is a multi-line selection indents the selection, otherwise inserts a tab at the caret location. (Inherited from IEditorOperations.)
Public method InsertFile Inserts the contents of a file on disk into the text buffer. (Inherited from IEditorOperations.)
Public method InsertNewLine Inserts a new line at the current caret position. (Inherited from IEditorOperations.)
Public method InsertProvisionalText Inserts the given text at the current caret position as provisional text. (Inherited from IEditorOperations.)
Public method InsertText Inserts the given text at the current caret position. (Inherited from IEditorOperations.)
Public method InsertTextAsBox Inserts the specified text at the current caret position as a box. (Inherited from IEditorOperations.)
Public method MakeLowercase Converts uppercase letters to lowercase in the selection. If the selection is empty, makes the next character lowercase. (Inherited from IEditorOperations.)
Public method MakeUppercase Converts lowercase letters to uppercase in the selection. If the selection is empty, makes the next character uppercase. (Inherited from IEditorOperations.)
Public method MoveCaret Moves the caret to the given line at the given offset. (Inherited from IEditorOperations.)
Public method MoveCurrentLineToBottom Moves the current line to the bottom of the view. (Inherited from IEditorOperations.)
Public method MoveCurrentLineToTop Moves the current line to the top of the view. (Inherited from IEditorOperations.)
Public method MoveLineDown Moves the caret one line down. (Inherited from IEditorOperations.)
Public method MoveLineUp Moves the caret one line up. (Inherited from IEditorOperations.)
Public method 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.
Public method 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.
Public method MoveToBottomOfView Moves the caret to the last fully-visible line of the view. (Inherited from IEditorOperations.)
Public method MoveToEndOfDocument Moves the caret at the end of the document. (Inherited from IEditorOperations.)
Public method MoveToEndOfLine Moves the caret to the end of the line. (Inherited from IEditorOperations.)
Public method MoveToHome Moves the caret to the first text column on the line. (Inherited from IEditorOperations.)
Public method MoveToLastNonWhiteSpaceCharacter Moves the caret to just before the last non-white space character in the line. (Inherited from IEditorOperations.)
Public method MoveToNextCharacter Moves the caret to the next character. (Inherited from IEditorOperations.)
Public method MoveToNextWord Moves the caret to the next word. (Inherited from IEditorOperations.)
Public method MoveToPreviousCharacter Moves the caret to the previous character. (Inherited from IEditorOperations.)
Public method MoveToPreviousWord Moves the caret to the previous word. (Inherited from IEditorOperations.)
Public method MoveToStartOfDocument Moves the caret to the start of the document. (Inherited from IEditorOperations.)
Public method MoveToStartOfLine Moves the caret to the start of the line. (Inherited from IEditorOperations.)
Public method MoveToStartOfLineAfterWhiteSpace Moves the caret to the first non-whitespace character of the line. (Inherited from IEditorOperations.)
Public method MoveToStartOfNextLineAfterWhiteSpace Moves the caret to the first non-whitespace character in the next line. (Inherited from IEditorOperations.)
Public method MoveToStartOfPreviousLineAfterWhiteSpace Moves the caret to the first non-whitespace character on the previous line. (Inherited from IEditorOperations.)
Public method MoveToTopOfView Moves the caret to the first fully-visible line of the view. (Inherited from IEditorOperations.)
Public method NormalizeLineEndings Replaces all the line endings that do not match the specified string. (Inherited from IEditorOperations.)
Public method OpenLineAbove Inserts a new line at the start of the line the caret is on. (Inherited from IEditorOperations.)
Public method OpenLineBelow Inserts a new line at the end of the line the caret is on. (Inherited from IEditorOperations.)
Public method PageDown Moves the caret one page down. (Inherited from IEditorOperations.)
Public method PageUp Moves the caret one page up. (Inherited from IEditorOperations.)
Public method Paste Pastes text from the clipboard to the text buffer. (Inherited from IEditorOperations.)
Public method ReplaceAllMatches Replaces all matching occurrences of the given string. (Inherited from IEditorOperations.)
Public method ReplaceSelection Replaces the text selection with the specified text. (Inherited from IEditorOperations.)
Public method ReplaceText Replaces text from the specified span with the specified text. (Inherited from IEditorOperations.)
Public method ResetSelection Resets any selection in the text. (Inherited from IEditorOperations.)
Public method ScrollColumnLeft Scrolls the view one column to the left. (Inherited from IEditorOperations.)
Public method ScrollColumnRight Scrolls the view one column to the right. (Inherited from IEditorOperations.)
Public method 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.)
Public method ScrollLineBottom Scrolls the line the caret is on, so that it is the last fully-visible line in the view. (Inherited from IEditorOperations.)
Public method ScrollLineCenter Scrolls the line the caret is on, so that it is centered in the view. (Inherited from IEditorOperations.)
Public method ScrollLineTop Scrolls the line the caret is on, so that it is the first fully-visible line in the view. (Inherited from IEditorOperations.)
Public method ScrollPageDown Scrolls the view down a page without moving the caret. (Inherited from IEditorOperations.)
Public method ScrollPageUp Scrolls the view up a page without moving the caret. (Inherited from IEditorOperations.)
Public method 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.)
Public method SelectAll Selects all text. (Inherited from IEditorOperations.)
Public method 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.)
Public method 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.)
Public method 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.)
Public method SelectCurrentWord Selects the current word. (Inherited from IEditorOperations.)
Public method SelectEnclosing Selects the enclosing parent. (Inherited from IEditorOperations.)
Public method SelectFirstChild Selects the first child. (Inherited from IEditorOperations.)
Public method SelectLine Selects the specified line. (Inherited from IEditorOperations.)
Public method SelectNextSibling Selects the next sibling. (Inherited from IEditorOperations.)
Public method SelectPreviousSibling Selects the previous sibling. (Inherited from IEditorOperations.)
Public method SwapCaretAndAnchor Swaps the caret from its current position to the other end of the selection. (Inherited from IEditorOperations.)
Public method Tabify Converts the leading white space to tabs on all lines touched by the selection and caret. (Inherited from IEditorOperations.)
Public method 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.)
Public method TransposeCharacter Transposes the character at the cursor with the next character. (Inherited from IEditorOperations.)
Public method TransposeLine Transposes the line containing the cursor with the next line. (Inherited from IEditorOperations.)
Public method TransposeWord Transposes the current word with the next one. (Inherited from IEditorOperations.)
Public method Unindent Unindents the text. (Inherited from IEditorOperations.)
Public method Untabify Converts the leading whitespace to spaces on all lines touched by the selection and the caret. (Inherited from IEditorOperations.)
Public method ZoomIn Zooms in to the text view by a scaling factor of 10%. (Inherited from IEditorOperations.)
Public method ZoomOut Zooms out of the text view by a scaling factor of 10%. (Inherited from IEditorOperations.)
Public method ZoomTo Applies the specified zoom level to the text view. (Inherited from IEditorOperations.)

Top

See Also

Reference

Microsoft.VisualStudio.Text.Operations Namespace