DXCore Services – Text Buffers
June 12th, 2012
The Text Buffers DXCore service provides low-level access to the text buffers in Visual Studio. Text buffers manage the stream of Unicode text that is entered into the IDE text editor and file persistence, including saving text files. A text buffer can use either a one- or two-dimensional coordinate system to identify character positions in the buffer.
Methods of this service:
Name |
Description |
FromDocCookie(Int32) | Returns the text buffer associated with the specified doc cookie passed as an argument to this method. |
FromTextDocument (TextDocument) | Returns the text buffer associated with the specified text document passed as an argument to this method. |
GetEnumerator | Returns the Enumerator for opened text buffers. |
NewMultiFileCompoundAction (String) | Creates and returns a multi-file compound action required to perform the undo/redo action of the multi-file editing operations. |
NewMultiFileCompoundAction (String, Boolean) | Creates and returns a multi-file compound action required to perform the undo/redo action of the multi-file editing operations. Takes a boolean parameter which specifies whether the text selection should be restored on undo. |
NewMultiFileCompoundAction (String, Int32, SourceRange) | Creates and returns a multi-file compound action required to perform the undo/redo action of the multi-file editing operations. Takes the top line and the source range of the selection as parameters to restore them on undo. |
NewMultiFileCompoundAction (String, Int32, SourceRange, String) | Creates and returns a multi-file compound action required to perform the undo/redo action of the multi-file editing operations. Takes the top line, the source range of the selection, and the file name as parameters to restore them on undo. |
Open(String) | Opens a text buffer specified by its full name. |
Properties:
Name |
Description |
Active | Returns the active opened text buffer. |
Count | Returns the count of opened text buffers. |
Item(Int32) | Returns the text buffer by its index. |
Item(String) | Returns the text buffer by its full name. |