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
'Déclaration
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
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The text view of interest.
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
- 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.