Partilhar via


IVsEditorAdaptersFactoryService.GetViewAdapter Method

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

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

Syntax

'Declaração
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 null.

Remarks

Adapters are generally built only for document windows.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace