IVsEditorAdaptersFactoryService::GetWpfTextView Method (IVsTextView^)

 

Get the WPF text view of a text view adapter.

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

IWpfTextView^ GetWpfTextView(
	IVsTextView^ viewAdapter
)

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 UI, or null if this method is called before content has been established for the adapter.

Exception Condition
ArgumentNullException

viewAdapter is null.

ArgumentException

viewAdapter was not produced by this factory.

Return to top
Show: