Share via


IVsEditorAdaptersFactoryService.GetViewAdapter Method

Gets the IVsTextView adapter for this text view (if it exists).

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

Syntax

'Declaration
Function GetViewAdapter ( _
    textView As ITextView _
) As IVsTextView
IVsTextView GetViewAdapter(
    ITextView textView
)
IVsTextView^ GetViewAdapter(
    ITextView^ textView
)
abstract GetViewAdapter : 
        textView:ITextView -> IVsTextView 
function GetViewAdapter(
    textView : ITextView
) : IVsTextView

Parameters

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
The text view adapter, or nulla null reference (Nothing in Visual Basic) if no adapter exists.

Exceptions

Exception Condition
ArgumentNullException

textView is nulla null reference (Nothing in Visual Basic).

Remarks

Adapters are typically built only for document windows.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace