IVsTextBufferProvider Interface
Enables a DocData object to delegate text buffer (IVsTextLines) implementation.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
<InterfaceTypeAttribute()> _
<GuidAttribute("76A3B2C0-C743-11D0-A7A6-00A0C9110051")> _
Public Interface IVsTextBufferProvider
[InterfaceTypeAttribute()]
[GuidAttribute("76A3B2C0-C743-11D0-A7A6-00A0C9110051")]
public interface IVsTextBufferProvider
[InterfaceTypeAttribute()]
[GuidAttribute(L"76A3B2C0-C743-11D0-A7A6-00A0C9110051")]
public interface class IVsTextBufferProvider
[<InterfaceTypeAttribute()>]
[<GuidAttribute("76A3B2C0-C743-11D0-A7A6-00A0C9110051")>]
type IVsTextBufferProvider = interface end
public interface IVsTextBufferProvider
The IVsTextBufferProvider type exposes the following members.
Methods
Name | Description | |
---|---|---|
GetTextBuffer | Retrieves the contents of the text buffer. | |
LockTextBuffer | Locks the text buffer to prevent editing. | |
SetTextBuffer | Writes the text data to the specified text buffer. |
Top
Remarks
Clients of a DocData object requiring access to its text buffer should first query for IVsTextLines. If the query fails, the client should then query for IVsTextBufferProvider and invoke GetTextBuffer.