IVsTextBufferProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enables a DocData object to delegate text buffer (IVsTextLines) implementation.
public interface class IVsTextBufferProvider
public interface class IVsTextBufferProvider
__interface IVsTextBufferProvider
[System.Runtime.InteropServices.Guid("76A3B2C0-C743-11D0-A7A6-00A0C9110051")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsTextBufferProvider
[System.Runtime.InteropServices.Guid("76A3B2C0-C743-11D0-A7A6-00A0C9110051")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsTextBufferProvider
[<System.Runtime.InteropServices.Guid("76A3B2C0-C743-11D0-A7A6-00A0C9110051")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsTextBufferProvider = interface
[<System.Runtime.InteropServices.Guid("76A3B2C0-C743-11D0-A7A6-00A0C9110051")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsTextBufferProvider = interface
Public Interface IVsTextBufferProvider
- Derived
- Attributes
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.
Methods
GetTextBuffer(IVsTextLines) |
Retrieves the contents of the text buffer. |
LockTextBuffer(Int32) |
Locks the text buffer to prevent editing. |
SetTextBuffer(IVsTextLines) |
Writes the text data to the specified text buffer. |