Export (0) Print
Expand All

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.

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

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

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

The VsTextBufferClass type exposes the following members.

  NameDescription
Public methodVsTextBufferClassCreates a new instance of the class.
Top

  NameDescription
Public methodAdviseTextLinesEventsMethod information not provided. Do not use this method.
Public methodCanReplaceLinesTests whether a given editing operation such as copy or cut can succeed.
Public methodCopyLineTextPuts the specified span of text into a caller-allocated buffer (an array).
Public methodCreateEditPointCreates an EditPoint object at the given location in the text buffer.
Public methodCreateLineMarkerCreates a marker of a given type over the specified region.
Public methodCreateTextPointCreates a TextPoint object at the given location in the text buffer.
Public methodEnumMarkersEnumerates a specific set of text line markers, based on the criteria specified.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodFindMarkerByLineIndexLocates a marker of a given type based on a line index.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLanguageServiceIDReturns the unique identifier of the language that is providing colorization and other attribute data to this buffer.
Public methodGetLastLineIndexReturns the last line in the text buffer.
Public methodGetLengthOfLineReturns the length of a line in the buffer.
Public methodGetLineCountReturns the number of lines in the buffer.
Public methodGetLineDataProvides direct, line-oriented access to the text buffer.
Public methodGetLineDataExProvides direct, line-oriented access to the text buffer.
Public methodGetLineIndexOfPositionReturns the line and column numbers in the text buffer, given a position number.
Public methodGetLineTextReturns the specified span of text in a BSTR.
Public methodGetMarkerDataReturns text marker data for the specified line range within the text buffer.
Public methodGetPairExtentsMethod information not provided. Do not use this method.
Public methodGetPositionOfLineReturns the position number of a line.
Public methodGetPositionOfLineIndexReturns the position number in the text buffer, given a line and column number.
Public methodGetSizeGets the buffer size.
Public methodGetStateFlagsReturns the state flags of the text buffer.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodGetUndoManagerReturns the undo manager for this buffer.
Public methodInitializeContentInitializes the content of the text buffer.
Public methodIVsTextLines_GetLanguageServiceIDReturns the unique identifier of the language that is providing colorization and other attribute data to this buffer.
Public methodIVsTextLines_GetLastLineIndexReturns the last line in the text buffer.
Public methodIVsTextLines_GetLengthOfLineReturns the length of a line in the buffer.
Public methodIVsTextLines_GetLineCountReturns the number of lines in the buffer.
Public methodIVsTextLines_GetLineIndexOfPositionReturns the line and column numbers in the text buffer, given a position number.
Public methodIVsTextLines_GetPositionOfLineReturns the position number of a line.
Public methodIVsTextLines_GetPositionOfLineIndexReturns the position number in the text buffer, given a line and column number.
Public methodIVsTextLines_GetSizeReturns the size in characters of the buffer.
Public methodIVsTextLines_GetStateFlagsReturns the state flags of the text buffer.
Public methodIVsTextLines_GetUndoManagerReturns the undo manager for this buffer.
Public methodIVsTextLines_InitializeContentInitializes the content of the text buffer.
Public methodIVsTextLines_LockBufferLocks the text buffer for the purpose of access control.
Public methodIVsTextLines_LockBufferExExtension of the LockBuffer method.
Public methodIVsTextLines_ReloadReloads the text buffer.
Public methodIVsTextLines_Reserved1Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved10Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved2Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved3Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved4Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved5Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved6Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved7Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved8Reserved in the Vtable for future use.
Public methodIVsTextLines_Reserved9Reserved in the Vtable for future use.
Public methodIVsTextLines_SetLanguageServiceIDSets the unique identifier of the language that is providing colorization and other attribute data to the buffer.
Public methodIVsTextLines_SetStateFlagsSets the state flags of the text buffer.
Public methodIVsTextLines_UnlockBufferUnlocks a buffer locked with the method LockBuffer.
Public methodIVsTextLines_UnlockBufferExExtension of the UnlockBuffer method.
Public methodIVsTextLinesReserved1Method information not provided. Do not use this method.
Public methodLockBufferLocks the text buffer for the purpose of access control.
Public methodLockBufferExExtension of the LockBuffer method.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodReleaseLineDataReleases the LINEDATA structure.
Public methodReleaseLineDataExReleases the LINEDATAEX structure.
Public methodReleaseMarkerDataCleans up the MARKERDATA structure.
Public methodReloadReloads the text buffer.
Public methodReloadLinesReplaces text without deleting markers.
Public methodReplaceLinesHandles stream-like line editing, such as line breaking and line joining.
Public methodReplaceLinesExHandles stream-like line editing, such as line breaking and line joining.
Public methodReserved1Reserved in the Vtable for future use.
Public methodReserved10Reserved in the Vtable for future use.
Public methodReserved2Reserved in the Vtable for future use.
Public methodReserved3Reserved in the Vtable for future use.
Public methodReserved4Reserved in the Vtable for future use.
Public methodReserved5Reserved in the Vtable for future use.
Public methodReserved6Reserved in the Vtable for future use.
Public methodReserved7Reserved in the Vtable for future use.
Public methodReserved8Reserved in the Vtable for future use.
Public methodReserved9Reserved in the Vtable for future use.
Public methodSetLanguageServiceIDSets the unique identifier of the language that is providing colorization and other attribute data to the buffer.
Public methodSetStateFlagsSets the state flags of the text buffer.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUnadviseTextLinesEventsMethod information not provided. Do not use this method.
Public methodUnlockBufferUnlocks a buffer locked with the method LockBuffer.
Public methodUnlockBufferExExtension of the UnlockBuffer method.
Top

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.
Show:
© 2014 Microsoft