Partilhar via


IVsEditorAdaptersFactoryService.CreateVsTextViewAdapter Method

Definition

Overloads

CreateVsTextViewAdapter(IServiceProvider)

Create an IVsTextView.

CreateVsTextViewAdapter(IServiceProvider, ITextViewRoleSet)

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

CreateVsTextViewAdapter(IServiceProvider)

Create an IVsTextView.

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ CreateVsTextViewAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider);
public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ CreateVsTextViewAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider);
Microsoft::VisualStudio::TextManager::Interop::IVsTextView CreateVsTextViewAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider const & serviceProvider);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextView CreateVsTextViewAdapter (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider);
abstract member CreateVsTextViewAdapter : Microsoft.VisualStudio.OLE.Interop.IServiceProvider -> Microsoft.VisualStudio.TextManager.Interop.IVsTextView
Public Function CreateVsTextViewAdapter (serviceProvider As IServiceProvider) As IVsTextView

Parameters

serviceProvider
IServiceProvider

The IServiceProvider with which to site the IVsTextView.

Returns

The new IVsTextView.

Exceptions

serviceProvider is null.

Applies to

CreateVsTextViewAdapter(IServiceProvider, ITextViewRoleSet)

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

public:
 Microsoft::VisualStudio::TextManager::Interop::IVsTextView ^ CreateVsTextViewAdapter(Microsoft::VisualStudio::OLE::Interop::IServiceProvider ^ serviceProvider, Microsoft::VisualStudio::Text::Editor::ITextViewRoleSet ^ roles);
public Microsoft.VisualStudio.TextManager.Interop.IVsTextView CreateVsTextViewAdapter (Microsoft.VisualStudio.OLE.Interop.IServiceProvider serviceProvider, Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet roles);
abstract member CreateVsTextViewAdapter : Microsoft.VisualStudio.OLE.Interop.IServiceProvider * Microsoft.VisualStudio.Text.Editor.ITextViewRoleSet -> Microsoft.VisualStudio.TextManager.Interop.IVsTextView
Public Function CreateVsTextViewAdapter (serviceProvider As IServiceProvider, roles As ITextViewRoleSet) As IVsTextView

Parameters

serviceProvider
IServiceProvider

The IServiceProvider with which to site the IVsTextView.

roles
ITextViewRoleSet

The roles with which to initialize the text view.

Returns

The new IVsTextView.

Exceptions

roles is null.

Applies to