Returns the current contents of the text buffer.
Namespace: Microsoft.VisualStudio.TextManager.Interop
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Syntax
'宣言
Public Overridable Function GetBuffer ( _
<OutAttribute> ByRef ppBuffer As IVsTextLines _
) As Integer
'使用
Dim instance As VsTextViewClass
Dim ppBuffer As IVsTextLines
Dim returnValue As Integer
returnValue = instance.GetBuffer(ppBuffer)
public virtual int GetBuffer(
out IVsTextLines ppBuffer
)
public:
virtual int GetBuffer(
[OutAttribute] IVsTextLines^% ppBuffer
)
public function GetBuffer(
ppBuffer : IVsTextLines
) : int
Parameters
ppBuffer
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines%[out] Pointer to the IVsTextLines interface representing the text buffer.
Return Value
Type: System.Int32
Implements
IVsTextView.GetBuffer(IVsTextLines%)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.