VsTextBufferClass Class
Acts as the base interface for the VsTextBuffer object and provides general information about the text buffer's properties. Provides read and write access to the text buffer using two-dimensional coordinates.
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.TextManager.Interop.VsTextBufferClass
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'Declaration
<ClassInterfaceAttribute()> _
<GuidAttribute("8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A")> _
Public Class VsTextBufferClass _
Implements IVsTextBuffer, VsTextBuffer, IVsTextLines
[ClassInterfaceAttribute()]
[GuidAttribute("8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A")]
public class VsTextBufferClass : IVsTextBuffer,
VsTextBuffer, IVsTextLines
[ClassInterfaceAttribute()]
[GuidAttribute(L"8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A")]
public ref class VsTextBufferClass : IVsTextBuffer,
VsTextBuffer, IVsTextLines
[<ClassInterfaceAttribute()>]
[<GuidAttribute("8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A")>]
type VsTextBufferClass =
class
interface IVsTextBuffer
interface VsTextBuffer
interface IVsTextLines
end
public class VsTextBufferClass implements IVsTextBuffer, VsTextBuffer, IVsTextLines
The VsTextBufferClass type exposes the following members.
Constructors
Name | Description | |
---|---|---|
VsTextBufferClass |
Top
Methods
Name | Description | |
---|---|---|
AdviseTextLinesEvents | Method information not provided. Do not use this method. | |
CanReplaceLines | Tests whether a given editing operation such as copy or cut can succeed. | |
CopyLineText | Puts the specified span of text into a caller-allocated buffer (an array). | |
CreateEditPoint | Creates an EditPoint object at the given location in the text buffer. | |
CreateLineMarker | Creates a marker of a given type over the specified region. | |
CreateTextPoint | Creates a TextPoint object at the given location in the text buffer. | |
EnumMarkers | Enumerates a specific set of text line markers, based on the criteria specified. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
FindMarkerByLineIndex | Locates a marker of a given type based on a line index. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetLanguageServiceID | Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer. | |
GetLastLineIndex | Returns the last line in the text buffer. | |
GetLengthOfLine | Returns the length of a line in the buffer. | |
GetLineCount | Returns the number of lines in the buffer. | |
GetLineData | Provides direct, line-oriented access to the text buffer. | |
GetLineDataEx | Provides direct, line-oriented access to the text buffer. | |
GetLineIndexOfPosition | Returns the line and column numbers in the text buffer, given a position number. | |
GetLineText | Returns the specified span of text in a BSTR. | |
GetMarkerData | Returns text marker data for the specified line range within the text buffer. | |
GetPairExtents | Method information not provided. Do not use this method. | |
GetPositionOfLine | Returns the position number of a line. | |
GetPositionOfLineIndex | Returns the position number in the text buffer, given a line and column number. | |
GetSize | ||
GetStateFlags | Returns the state flags of the text buffer. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUndoManager | Returns the undo manager for this buffer. | |
InitializeContent | Initializes the content of the text buffer. | |
IVsTextLines_GetLanguageServiceID | Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer. | |
IVsTextLines_GetLastLineIndex | Returns the last line in the text buffer. | |
IVsTextLines_GetLengthOfLine | Returns the length of a line in the buffer. | |
IVsTextLines_GetLineCount | Returns the number of lines in the buffer. | |
IVsTextLines_GetLineIndexOfPosition | Returns the line and column numbers in the text buffer, given a position number. | |
IVsTextLines_GetPositionOfLine | Returns the position number of a line. | |
IVsTextLines_GetPositionOfLineIndex | Returns the position number in the text buffer, given a line and column number. | |
IVsTextLines_GetSize | Returns the size in characters of the buffer. | |
IVsTextLines_GetStateFlags | Returns the state flags of the text buffer. | |
IVsTextLines_GetUndoManager | Returns the undo manager for this buffer. | |
IVsTextLines_InitializeContent | Initializes the content of the text buffer. | |
IVsTextLines_LockBuffer | Locks the text buffer for the purpose of access control. | |
IVsTextLines_LockBufferEx | Extension of the LockBuffer method. | |
IVsTextLines_Reload | Reloads the text buffer. | |
IVsTextLines_Reserved1 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved10 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved2 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved3 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved4 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved5 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved6 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved7 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved8 | Reserved in the Vtable for future use. | |
IVsTextLines_Reserved9 | Reserved in the Vtable for future use. | |
IVsTextLines_SetLanguageServiceID | Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer. | |
IVsTextLines_SetStateFlags | Sets the state flags of the text buffer. | |
IVsTextLines_UnlockBuffer | Unlocks a buffer locked with the method LockBuffer. | |
IVsTextLines_UnlockBufferEx | Extension of the UnlockBuffer method. | |
IVsTextLinesReserved1 | Method information not provided. Do not use this method. | |
LockBuffer | Locks the text buffer for the purpose of access control. | |
LockBufferEx | Extension of the LockBuffer method. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ReleaseLineData | Releases the LINEDATA structure. | |
ReleaseLineDataEx | Releases the LINEDATAEX structure. | |
ReleaseMarkerData | Cleans up the MARKERDATA structure. | |
Reload | Reloads the text buffer. | |
ReloadLines | Replaces text without deleting markers. | |
ReplaceLines | Handles stream-like line editing, such as line breaking and line joining. | |
ReplaceLinesEx | Handles stream-like line editing, such as line breaking and line joining. | |
Reserved1 | Reserved in the Vtable for future use. | |
Reserved10 | Reserved in the Vtable for future use. | |
Reserved2 | Reserved in the Vtable for future use. | |
Reserved3 | Reserved in the Vtable for future use. | |
Reserved4 | Reserved in the Vtable for future use. | |
Reserved5 | Reserved in the Vtable for future use. | |
Reserved6 | Reserved in the Vtable for future use. | |
Reserved7 | Reserved in the Vtable for future use. | |
Reserved8 | Reserved in the Vtable for future use. | |
Reserved9 | Reserved in the Vtable for future use. | |
SetLanguageServiceID | Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer. | |
SetStateFlags | Sets the state flags of the text buffer. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
UnadviseTextLinesEvents | Method information not provided. Do not use this method. | |
UnlockBuffer | Unlocks a buffer locked with the method LockBuffer. | |
UnlockBufferEx | Extension of the UnlockBuffer method. |
Top
Remarks
You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.