Condividi tramite


IVsEditorAdaptersFactoryService.GetDataBuffer Method

Get the data buffer of a text buffer adapter. This is the top buffer of the data model buffer graph.

Namespace:  Microsoft.VisualStudio.Editor
Assembly:  Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)

Syntax

'Declaration
Function GetDataBuffer ( _
    bufferAdapter As IVsTextBuffer _
) As ITextBuffer
ITextBuffer GetDataBuffer(
    IVsTextBuffer bufferAdapter
)
ITextBuffer^ GetDataBuffer(
    IVsTextBuffer^ bufferAdapter
)
abstract GetDataBuffer : 
        bufferAdapter:IVsTextBuffer -> ITextBuffer
function GetDataBuffer(
    bufferAdapter : IVsTextBuffer
) : ITextBuffer

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer data buffer that is presented to the view model, or nulla null reference (Nothing in Visual Basic) if this method is called before content has been established for the adapter.

Exceptions

Exception Condition
ArgumentNullException

bufferAdapter is null.

ArgumentException

bufferAdapter was not produced by this factory.

Remarks

This buffer will be the same as the document buffer, except in buffer coordinator scenarios.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace