Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets the text view host of a text view adapter.
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'Declaration
Function GetWpfTextViewHost ( _
viewAdapter As IVsTextView _
) As IWpfTextViewHost
IWpfTextViewHost GetWpfTextViewHost(
IVsTextView viewAdapter
)
IWpfTextViewHost^ GetWpfTextViewHost(
IVsTextView^ viewAdapter
)
abstract GetWpfTextViewHost :
viewAdapter:IVsTextView -> IWpfTextViewHost
function GetWpfTextViewHost(
viewAdapter : IVsTextView
) : IWpfTextViewHost
Parameters
- viewAdapter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
The text view adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost
The IWpfTextViewHost of the adapter.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | viewAdapter is nulla null reference (Nothing in Visual Basic). |
| ArgumentException | viewAdapter was not produced by this factory. |
.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.