Freigeben über


IVsTextBufferProvider.SetTextBuffer(IVsTextLines) Method

Definition

Writes the text data to the specified text buffer.

public:
 int SetTextBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextBuffer);
public:
 int SetTextBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pTextBuffer);
int SetTextBuffer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pTextBuffer);
public int SetTextBuffer (Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pTextBuffer);
abstract member SetTextBuffer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines -> int
Public Function SetTextBuffer (pTextBuffer As IVsTextLines) As Integer

Parameters

pTextBuffer
IVsTextLines

[in] Storage for textual data to be placed directly in the DocData.

Returns

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  
);  

Applies to