Freigeben über


IVsEditorFactory Interface

Definition

Creates instances of document view objects and of data objects.

public interface class IVsEditorFactory
public interface class IVsEditorFactory
__interface IVsEditorFactory
[System.Runtime.InteropServices.Guid("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsEditorFactory
[System.Runtime.InteropServices.Guid("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsEditorFactory
[<System.Runtime.InteropServices.Guid("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsEditorFactory = interface
[<System.Runtime.InteropServices.Guid("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsEditorFactory = interface
Public Interface IVsEditorFactory
Derived
Attributes

Remarks

An editor factory acts like an OLE IClassFactory for instantiating document view objects and document data objects in an editor. The editor factory architecture allows you to create editors that support data/view separation (for example, an editor could support the Window.NewWindow functionality). For more information, see How to: Register an Editor Factory.

The following table lists examples of common tasks using IVsEditorFactory.

To do this See
Attach a view to an existing buffer How to: Attach Views to Document Data
Register your editor factory with the environment How to: Register an Editor Factory
Customize the Visual Studio core editor with your language service Instantiating the Core Editor By Using the Legacy API

Inside the Core Editor

Developing a Legacy Language Service

Implement this interface to support loading your editor in the environment in response to a third party or the environment calling OpenSpecificEditor or OpenStandardEditor.

Methods

Close()

Releases all cached interface pointers and unregisters any event sinks.

CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32)

Used by the editor factory architecture to create editors that support data/view separation.

MapLogicalView(Guid, String)

Maps a logical view to a physical view.

SetSite(IServiceProvider)

Initializes an editor in the environment.

Applies to