VsTextViewClass::SetBuffer Method (IVsTextLines^)

 

Associates a text buffer with the view.

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

public:
virtual int SetBuffer(
	IVsTextLines^ pBuffer
)

Parameters

pBuffer
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

[in] Pointer to the text buffer to associate with the view.

Return Value

Type: System::Int32

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

Return to top
Show: