IVsTextBufferProvider Interface

Definition

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.

Applies to