ModelingDocData.GetTextBuffer(IVsTextLines) 方法

定义

将文本加载到缓冲区中。Loads the text into the buffer. 此方法将创建一个 VSTextManagerInterop:: IVsTextLines,并将其与模型一起加载This method will allocate a VSTextManagerInterop::IVsTextLines will be created and loaded with the model

public:
 virtual int GetTextBuffer([Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ % ppTextBuffer);
public virtual int GetTextBuffer (out Microsoft.VisualStudio.TextManager.Interop.IVsTextLines ppTextBuffer);
abstract member GetTextBuffer : IVsTextLines -> int
override this.GetTextBuffer : IVsTextLines -> int
Public Overridable Function GetTextBuffer (ByRef ppTextBuffer As IVsTextLines) As Integer

参数

ppTextBuffer
IVsTextLines

与模型文件一起加载的新创建的缓冲区 (XML 字符串形式) newly created buffer loaded with the model file (in XML string form)

返回

Int32

如果操作成功,则 VSConstants.S_OKVSConstants.S_OK if operation successful

实现

适用于