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
參數
ppBuffer
類型:Microsoft.VisualStudio.TextManager.Interop.IVsTextLines%[] out文字緩衝區物件指標 (IVsTextLines介面)。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
這個方法會傳回變數的指標, IVsTextLines代表文字緩衝區的介面。 如果您透過資料流座標,而不是列和索引的座標來存取文字緩衝區,您可以呼叫QueryInterface的IVsTextLines傳回變數的指標, IVsTextStream。
COM 簽章
從 textmgr.idl:
HRESULT IVsCodeWindow::GetBuffer(
[out] IVsTextLines **ppBuffer
);
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。