IVsEditorAdaptersFactoryService Interface

 

Creates adapters that map between legacy TextManager code and editor code.

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

public interface IVsEditorAdaptersFactoryService

NameDescription
System_CAPS_pubmethodCreateVsCodeWindowAdapter(IServiceProvider)

Creates an IVsCodeWindow.

System_CAPS_pubmethodCreateVsTextBufferAdapter(IServiceProvider)

Creates an IVsTextBuffer.

System_CAPS_pubmethodCreateVsTextBufferAdapter(IServiceProvider, IContentType)

Creates an IVsTextBuffer with the specified IContentType.

System_CAPS_pubmethodCreateVsTextBufferAdapterForSecondaryBuffer(IServiceProvider, ITextBuffer)

Creates an IVsTextBuffer for the secondary buffer (used in IVsTextBufferCoordinator) for the specified ITextBuffer.

System_CAPS_pubmethodCreateVsTextBufferCoordinatorAdapter()
System_CAPS_pubmethodCreateVsTextViewAdapter(IServiceProvider)

Creates an IVsTextView.

System_CAPS_pubmethodCreateVsTextViewAdapter(IServiceProvider, ITextViewRoleSet)

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

System_CAPS_pubmethodGetBufferAdapter(ITextBuffer)

Gets the text buffer adapter for this text buffer (if it exists).

System_CAPS_pubmethodGetDataBuffer(IVsTextBuffer)

Get the data buffer of a text buffer adapter. This is the top buffer of the data model buffer graph.

System_CAPS_pubmethodGetDocumentBuffer(IVsTextBuffer)

Gets the document buffer of an IVsTextBuffer adapter. This is the bottom buffer of the data model buffer graph.

System_CAPS_pubmethodGetViewAdapter(ITextView)

Get the IVsTextView adapter for this text view (if it exists).

System_CAPS_pubmethodGetWpfTextView(IVsTextView)

Get the WPF text view of a text view adapter.

System_CAPS_pubmethodGetWpfTextViewHost(IVsTextView)

Gets the text view host of a text view adapter.

System_CAPS_pubmethodSetDataBuffer(IVsTextBuffer, ITextBuffer)

Sets the data buffer of a text buffer adapter that is being used together with an IVsTextBufferCoordinator adapter.

This is a MEF Component, and should be imported with the following attribute:

[Import]

For examples of how to import and use this service, see the following walkthroughs:

Walkthrough: Displaying Statement Completion

Walkthrough: Using a Shortcut Key with an Editor Extension

Return to top
Show: