TextSelection Methods
Assembly: EnvDTE (in EnvDTE.dll)
| Name | Description | |
|---|---|---|
![]() | Backspace(Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only. |
![]() | Cancel() | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only. |
![]() | ChangeCase(vsCaseOptions) | Changes the case of the text selection. |
![]() | CharLeft(Boolean, Int32) | Moves the object the specified number of characters to the left. |
![]() | CharRight(Boolean, Int32) | Moves the object the specified number of characters to the right. |
![]() | ClearBookmark() | Clears any unnamed bookmarks in the current text buffer line. |
![]() | Collapse() | Collapses the text selection to the active point. |
![]() | Copy() | Copies the text selection to the clipboard. |
![]() | Cut() | Copies the text selection to the clipboard and deletes it from its original location. |
![]() | Delete(Int32) | Deletes the text selection. |
![]() | DeleteLeft(Int32) | Deletes a specified number of characters to the left of the active point. |
![]() | DeleteWhitespace(vsWhitespaceOptions) | Deletes the empty characters (white space) horizontally or vertically around the current location in the text buffer. |
![]() | DestructiveInsert(String^) | Inserts text, overwriting the existing text. |
![]() | EndOfDocument(Boolean) | Moves the object to the end of the document. |
![]() | EndOfLine(Boolean) | Moves the object to the end of the current line. |
![]() | FindPattern(String^, Int32, TextRanges^) | Searches for the given pattern from the active point to the end of the document. |
![]() | FindText(String^, Int32) | Searches for the given text from the active point to the end of the document. |
![]() | GotoLine(Int32, Boolean) | Moves to the beginning of the indicated line and selects the line if requested. |
![]() | Indent(Int32) | Indents the selected lines by the given number of indentation levels. |
![]() | Insert(String^, Int32) | Inserts the given string at the current insertion point. |
![]() | InsertFromFile(String^) | Inserts the contents of the specified file at the current location in the buffer. |
![]() | LineDown(Boolean, Int32) | Moves the insertion point of the text selection down the specified number of lines. |
![]() | LineUp(Boolean, Int32) | Moves the insertion point of the text selection up the specified number of lines. |
![]() | MoveTo(Int32, Int32, Boolean) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only. |
![]() | MoveToAbsoluteOffset(Int32, Boolean) | Moves the active point to the given 1-based absolute character offset. |
![]() | MoveToDisplayColumn(Int32, Int32, Boolean) | Moves the active point to the indicated display column. |
![]() | MoveToLineAndOffset(Int32, Int32, Boolean) | Moves the active point to the given position. |
![]() | MoveToPoint(TextPoint^, Boolean) | Moves the active point to the given position. |
![]() | NewLine(Int32) | Inserts a line break character at the active point. |
![]() | NextBookmark() | Moves to the location of the next bookmark in the document. |
![]() | OutlineSection() | Creates an outlining section based on the current selection. |
![]() | PadToColumn(Int32) | Fills the current line in the buffer with empty characters (white space) to the given column. |
![]() | PageDown(Boolean, Int32) | Moves the active point a specified number of pages down in the document, scrolling the view. |
![]() | PageUp(Boolean, Int32) | Moves the active point a specified number of pages up in the document, scrolling the view. |
![]() | Paste() | Inserts the clipboard contents at the current location. |
![]() | PreviousBookmark() | Moves the text selection to the location of the previous bookmark in the document. |
![]() | ReplacePattern(String^, String^, Int32, TextRanges^) | Replaces matching text throughout an entire text document. |
![]() | ReplaceText(String^, String^, Int32) | This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only. |
![]() | SelectAll() | Selects the entire document. |
![]() | SelectLine() | Selects the line containing the active point. |
![]() | SetBookmark() | Sets an unnamed bookmark on the current line in the buffer. |
![]() | SmartFormat() | Formats the selected lines of text based on the current language. |
![]() | StartOfDocument(Boolean) | Moves the insertion point to the beginning of the document. |
![]() | StartOfLine(vsStartOfLineOptions, Boolean) | Moves the object to the beginning of the current line. |
![]() | SwapAnchor() | Exchanges the position of the active and the anchor points. |
![]() | Tabify() | Converts spaces to tabs in the selection according to your tab settings. |
![]() | Unindent(Int32) | Removes indents from the text selection by the number of indentation levels given. |
![]() | Untabify() | Converts tabs to spaces in the selection according to the user's tab settings. |
![]() | WordLeft(Boolean, Int32) | Moves the text selection left the specified number of words. |
![]() | WordRight(Boolean, Int32) | Moves the text selection right the specified number of words. |
