IVsCodeWindow.GetBuffer 方法

返回所有视图使用的缓冲区在代码窗口。

命名空间:  Microsoft.VisualStudio.TextManager.Interop
程序集:  Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

语法

声明
Function GetBuffer ( _
    <OutAttribute> ByRef ppBuffer As IVsTextLines _
) As Integer
int GetBuffer(
    out IVsTextLines ppBuffer
)
int GetBuffer(
    [OutAttribute] IVsTextLines^% ppBuffer
)
abstract GetBuffer : 
        ppBuffer:IVsTextLines byref -> int
function GetBuffer(
    ppBuffer : IVsTextLines
) : int

参数

返回值

类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

此方法返回指向表示文本缓冲区的 IVsTextLines 接口。 如果您访问文本缓冲区通过流坐标,而不是行和索引协调,您可以从 IVsTextLinesQueryInterface 返回指向 IVsTextStream

COM 签名

从 textmgr.idl:

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

.NET Framework 安全性

请参阅

参考

IVsCodeWindow 接口

Microsoft.VisualStudio.TextManager.Interop 命名空间