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)
Syntax
'Déclaration
Function CreateVsTextViewAdapter ( _
serviceProvider As IServiceProvider, _
roles As ITextViewRoleSet _
) As IVsTextView
IVsTextView CreateVsTextViewAdapter(
IServiceProvider serviceProvider,
ITextViewRoleSet roles
)
IVsTextView^ CreateVsTextViewAdapter(
IServiceProvider^ serviceProvider,
ITextViewRoleSet^ roles
)
abstract CreateVsTextViewAdapter :
serviceProvider:IServiceProvider *
roles:ITextViewRoleSet -> IVsTextView
function CreateVsTextViewAdapter(
serviceProvider : IServiceProvider,
roles : ITextViewRoleSet
) : IVsTextView
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.
.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.
See Also
Reference
IVsEditorAdaptersFactoryService Interface