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.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsTextBufferClass

[ClassInterfaceAttribute(0)]
[GuidAttribute("8E7B96A8-E33D-11D0-A6D5-00C04FB67F6A")]
public class VsTextBufferClass : IVsTextBuffer, VsTextBuffer, 
	IVsTextLines

NameDescription
System_CAPS_pubmethodVsTextBufferClass()

Creates a new instance of the class.

NameDescription
System_CAPS_pubmethodAdviseTextLinesEvents(IVsTextLinesEvents, UInt32)

Method information not provided. Do not use this method.

System_CAPS_pubmethodCanReplaceLines(Int32, Int32, Int32, Int32, Int32)

Tests whether a given editing operation such as copy or cut can succeed.

System_CAPS_pubmethodCopyLineText(Int32, Int32, Int32, Int32, IntPtr, Int32)

Puts the specified span of text into a caller-allocated buffer (an array).

System_CAPS_pubmethodCreateEditPoint(Int32, Int32, Object)

Creates an EditPoint object at the given location in the text buffer.

System_CAPS_pubmethodCreateLineMarker(Int32, Int32, Int32, Int32, Int32, IVsTextMarkerClient, IVsTextLineMarker[])

Creates a marker of a given type over the specified region.

System_CAPS_pubmethodCreateTextPoint(Int32, Int32, Object)

Creates a TextPoint object at the given location in the text buffer.

System_CAPS_pubmethodEnumMarkers(Int32, Int32, Int32, Int32, Int32, UInt32, IVsEnumLineMarkers)

Enumerates a specific set of text line markers, based on the criteria specified.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindMarkerByLineIndex(Int32, Int32, Int32, UInt32, IVsTextLineMarker)

Locates a marker of a given type based on a line index.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLanguageServiceID(Guid)

Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer.

System_CAPS_pubmethodGetLastLineIndex(Int32, Int32)

Returns the last line in the text buffer.

System_CAPS_pubmethodGetLengthOfLine(Int32, Int32)

Returns the length of a line in the buffer.

System_CAPS_pubmethodGetLineCount(Int32)

Returns the number of lines in the buffer.

System_CAPS_pubmethodGetLineData(Int32, LINEDATA[], MARKERDATA[])

Provides direct, line-oriented access to the text buffer.

System_CAPS_pubmethodGetLineDataEx(UInt32, Int32, Int32, Int32, LINEDATAEX[], MARKERDATA[])

Provides direct, line-oriented access to the text buffer.

System_CAPS_pubmethodGetLineIndexOfPosition(Int32, Int32, Int32)

Returns the line and column numbers in the text buffer, given a position number.

System_CAPS_pubmethodGetLineText(Int32, Int32, Int32, Int32, String)

Returns the specified span of text in a BSTR.

System_CAPS_pubmethodGetMarkerData(Int32, Int32, MARKERDATA[])

Returns text marker data for the specified line range within the text buffer.

System_CAPS_pubmethodGetPairExtents(TextSpan[], TextSpan[])

Method information not provided. Do not use this method.

System_CAPS_pubmethodGetPositionOfLine(Int32, Int32)

Returns the position number of a line.

System_CAPS_pubmethodGetPositionOfLineIndex(Int32, Int32, Int32)

Returns the position number in the text buffer, given a line and column number.

System_CAPS_pubmethodGetSize(Int32)

Gets the buffer size.

System_CAPS_pubmethodGetStateFlags(UInt32)

Returns the state flags of the text buffer.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUndoManager(IOleUndoManager)

Returns the undo manager for this buffer.

System_CAPS_pubmethodInitializeContent(String, Int32)

Initializes the content of the text buffer.

System_CAPS_pubmethodIVsTextLines_GetLanguageServiceID(Guid)

Returns the unique identifier of the language that is providing colorization and other attribute data to this buffer.

System_CAPS_pubmethodIVsTextLines_GetLastLineIndex(Int32, Int32)

Returns the last line in the text buffer.

System_CAPS_pubmethodIVsTextLines_GetLengthOfLine(Int32, Int32)

Returns the length of a line in the buffer.

System_CAPS_pubmethodIVsTextLines_GetLineCount(Int32)

Returns the number of lines in the buffer.

System_CAPS_pubmethodIVsTextLines_GetLineIndexOfPosition(Int32, Int32, Int32)

Returns the line and column numbers in the text buffer, given a position number.

System_CAPS_pubmethodIVsTextLines_GetPositionOfLine(Int32, Int32)

Returns the position number of a line.

System_CAPS_pubmethodIVsTextLines_GetPositionOfLineIndex(Int32, Int32, Int32)

Returns the position number in the text buffer, given a line and column number.

System_CAPS_pubmethodIVsTextLines_GetSize(Int32)

Returns the size in characters of the buffer.

System_CAPS_pubmethodIVsTextLines_GetStateFlags(UInt32)

Returns the state flags of the text buffer.

System_CAPS_pubmethodIVsTextLines_GetUndoManager(IOleUndoManager)

Returns the undo manager for this buffer.

System_CAPS_pubmethodIVsTextLines_InitializeContent(String, Int32)

Initializes the content of the text buffer.

System_CAPS_pubmethodIVsTextLines_LockBuffer()

Locks the text buffer for the purpose of access control.

System_CAPS_pubmethodIVsTextLines_LockBufferEx(UInt32)

Extension of the LockBuffer method.

System_CAPS_pubmethodIVsTextLines_Reload(Int32)

Reloads the text buffer.

System_CAPS_pubmethodIVsTextLines_Reserved1()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved10()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved2()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved3()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved4()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved5()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved6()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved7()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved8()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_Reserved9()

Reserved in the Vtable for future use.

System_CAPS_pubmethodIVsTextLines_SetLanguageServiceID(Guid)

Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer.

System_CAPS_pubmethodIVsTextLines_SetStateFlags(UInt32)

Sets the state flags of the text buffer.

System_CAPS_pubmethodIVsTextLines_UnlockBuffer()

Unlocks a buffer locked with the method LockBuffer.

System_CAPS_pubmethodIVsTextLines_UnlockBufferEx(UInt32)

Extension of the UnlockBuffer method.

System_CAPS_pubmethodIVsTextLinesReserved1(Int32, LINEDATA[], Int32)

Method information not provided. Do not use this method.

System_CAPS_pubmethodLockBuffer()

Locks the text buffer for the purpose of access control.

System_CAPS_pubmethodLockBufferEx(UInt32)

Extension of the LockBuffer method.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodReleaseLineData(LINEDATA[])

Releases the LINEDATA structure.

System_CAPS_pubmethodReleaseLineDataEx(LINEDATAEX[])

Releases the LINEDATAEX structure.

System_CAPS_pubmethodReleaseMarkerData(MARKERDATA[])

Cleans up the MARKERDATA structure.

System_CAPS_pubmethodReload(Int32)

Reloads the text buffer.

System_CAPS_pubmethodReloadLines(Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[])

Replaces text without deleting markers.

System_CAPS_pubmethodReplaceLines(Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[])

Handles stream-like line editing, such as line breaking and line joining.

System_CAPS_pubmethodReplaceLinesEx(UInt32, Int32, Int32, Int32, Int32, IntPtr, Int32, TextSpan[])

Handles stream-like line editing, such as line breaking and line joining.

System_CAPS_pubmethodReserved1()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved10()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved2()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved3()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved4()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved5()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved6()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved7()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved8()

Reserved in the Vtable for future use.

System_CAPS_pubmethodReserved9()

Reserved in the Vtable for future use.

System_CAPS_pubmethodSetLanguageServiceID(Guid)

Sets the unique identifier of the language that is providing colorization and other attribute data to the buffer.

System_CAPS_pubmethodSetStateFlags(UInt32)

Sets the state flags of the text buffer.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUnadviseTextLinesEvents(UInt32)

Method information not provided. Do not use this method.

System_CAPS_pubmethodUnlockBuffer()

Unlocks a buffer locked with the method LockBuffer.

System_CAPS_pubmethodUnlockBufferEx(UInt32)

Extension of the UnlockBuffer method.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: