IVsEditorAdaptersFactoryService.GetWpfTextView Method
Gets the Window Presentation Foundation (WPF) text view of a text view adapter.
Namespace: Microsoft.VisualStudio.Editor
Assembly: Microsoft.VisualStudio.Editor (in Microsoft.VisualStudio.Editor.dll)
Syntax
'宣言
Function GetWpfTextView ( _
viewAdapter As IVsTextView _
) As IWpfTextView
IWpfTextView GetWpfTextView(
IVsTextView viewAdapter
)
IWpfTextView^ GetWpfTextView(
IVsTextView^ viewAdapter
)
abstract GetWpfTextView :
viewAdapter:IVsTextView -> IWpfTextView
function GetWpfTextView(
viewAdapter : IVsTextView
) : IWpfTextView
Parameters
- viewAdapter
Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
The text view adapter of interest.
Return Value
Type: Microsoft.VisualStudio.Text.Editor.IWpfTextView
The IWpfTextView that presents the text in the user interface, 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 | 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.