次の方法で共有


IVsCodeWindow.GetBuffer(IVsTextLines) Method

Definition

Returns the buffer used by all views in the code window.

public:
 int GetBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ % ppBuffer);
public:
 int GetBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ &  ppBuffer);
int GetBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & & ppBuffer);
public int GetBuffer (out Microsoft.VisualStudio.TextManager.Interop.IVsTextLines ppBuffer);
abstract member GetBuffer : IVsTextLines -> int
Public Function GetBuffer (ByRef ppBuffer As IVsTextLines) As Integer

Parameters

ppBuffer
IVsTextLines

[out] Pointer to the text buffer object (IVsTextLines interface).

Returns

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

Remarks

This method returns a pointer to the IVsTextLines interface representing the text buffer. If you access the text buffer through stream coordinates, rather than line and index coordinates, you can call QueryInterface from IVsTextLines to return a pointer to IVsTextStream.

COM Signature

From textmgr.idl:

HRESULT IVsCodeWindow::GetBuffer(  
   [out] IVsTextLines **ppBuffer  
);  

Applies to