VsTextPackageClass::RegisterBuffer Method (IVsTextBuffer^)

 

Registers a text buffer with the text manager.

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

public:
virtual int RegisterBuffer(
	IVsTextBuffer^ pBuffer
)

Parameters

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

[in] Pointer to the IVsTextBuffer interface to register.

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: