IVsTextBufferProvider.SetTextBuffer Method

.

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

Syntax

声明
Function SetTextBuffer ( _
    pTextBuffer As IVsTextLines _
) As Integer
用法
Dim instance As IVsTextBufferProvider
Dim pTextBuffer As IVsTextLines
Dim returnValue As Integer

returnValue = instance.SetTextBuffer(pTextBuffer)
int SetTextBuffer(
    IVsTextLines pTextBuffer
)
int SetTextBuffer(
    [InAttribute] IVsTextLines^ pTextBuffer
)
abstract SetTextBuffer : 
        pTextBuffer:IVsTextLines -> int 
function SetTextBuffer(
    pTextBuffer : IVsTextLines
) : int

Parameters

Return Value

Type: System.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

IVsTextBufferProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace