IVsEditorAdaptersFactoryService::CreateVsTextViewAdapter Method (IServiceProvider^, ITextViewRoleSet^)

 

Create an IVsTextView with a specified set of text view roles.

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

IVsTextView^ CreateVsTextViewAdapter(
	IServiceProvider^ serviceProvider,
	ITextViewRoleSet^ roles
)

Parameters

serviceProvider
Type: Microsoft.VisualStudio.OLE.Interop::IServiceProvider^

The IServiceProvider with which to site the IVsTextView.

roles
Type: Microsoft.VisualStudio.Text.Editor::ITextViewRoleSet^

The IVsTextView with which to initialize the text view.

Return Value

Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextView^

The new text view.

Return to top
Show: