IVsEditorFactory Interface
Creates instances of document view objects and of data objects.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'宣言
<GuidAttribute("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")> _
<InterfaceTypeAttribute()> _
Public Interface IVsEditorFactory
'使用
Dim instance As IVsEditorFactory
[GuidAttribute("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")]
[InterfaceTypeAttribute()]
public interface IVsEditorFactory
[GuidAttribute(L"40FB079B-B62C-486F-9823-C9A2EAE8DBFD")]
[InterfaceTypeAttribute()]
public interface class IVsEditorFactory
[<GuidAttribute("40FB079B-B62C-486F-9823-C9A2EAE8DBFD")>]
[<InterfaceTypeAttribute()>]
type IVsEditorFactory = interface end
public interface IVsEditorFactory
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 Editor Factories.
The following table lists examples of common tasks using IVsEditorFactory.
To do this |
See |
---|---|
Attach a view to an existing buffer |
|
Register your editor factory with the environment |
|
Customize the Visual Studio core editor with your 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.