Partager via


IVsTextViewEvents.OnSetBuffer Method

Notifies a client when a view is attached to a new buffer.

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

Syntax

'Declaration
Sub OnSetBuffer ( _
    pView As IVsTextView, _
    pBuffer As IVsTextLines _
)
void OnSetBuffer(
    IVsTextView pView,
    IVsTextLines pBuffer
)
void OnSetBuffer(
    [InAttribute] IVsTextView^ pView, 
    [InAttribute] IVsTextLines^ pBuffer
)
abstract OnSetBuffer : 
        pView:IVsTextView * 
        pBuffer:IVsTextLines -> unit
function OnSetBuffer(
    pView : IVsTextView, 
    pBuffer : IVsTextLines
)

Parameters

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsTextViewEvents::OnSetBuffer(
   [in] IVsTextView *pView,
   [in] IVsTextLines *pBuffer
);

The reference count is not incremented when you obtain a pointer to IVsTextView and IVsTextLines; if you want to keep it, call AddRef on them explicitly.

.NET Framework Security

See Also

Reference

IVsTextViewEvents Interface

Microsoft.VisualStudio.TextManager.Interop Namespace