Freigeben über


IVsEditorAdaptersFactoryService.GetWpfTextView Method

Get the WPF text view of a text view adapter.

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

Syntax

'Declaration
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

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextView
The IWpfTextView that presents the text in the UI, 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 null.

ArgumentException

viewAdapter was not produced by this factory.

.NET Framework Security

See Also

Reference

IVsEditorAdaptersFactoryService Interface

Microsoft.VisualStudio.Editor Namespace