Freigeben über


IVsTextBufferProvider.SetTextBuffer Method

Writes the text data to the specified text buffer.

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

Syntax

'Declaration
Function SetTextBuffer ( _
    pTextBuffer As IVsTextLines _
) As Integer
int SetTextBuffer(
    IVsTextLines pTextBuffer
)
int SetTextBuffer(
    [InAttribute] IVsTextLines^ pTextBuffer
)
abstract SetTextBuffer : 
        pTextBuffer:IVsTextLines -> int
function SetTextBuffer(
    pTextBuffer : IVsTextLines
) : int

Parameters

Return Value

Type: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsTextBufferProvider::SetTextBuffer(
   [in] IVsTextLines *pTextBuffer
);

.NET Framework Security

See Also

Reference

IVsTextBufferProvider Interface

Microsoft.VisualStudio.Shell.Interop Namespace