This documentation is archived and is not being maintained.

IVsEditorFactoryChooser Interface

Implemented by an editor factory as a chooser (or delegator) to other types of editor factory.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

[GuidAttribute("00462323-0C58-4B10-BC63-95ED7427744C")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsEditorFactoryChooser

The IVsEditorFactoryChooser type exposes the following members.

  NameDescription
Public methodChooseEditorFactoryChooses the correct editor factory.
Top

A chooser editor factory will sample the input file to determine the correct editor factory to use. The OpenStandardEditor(UInt32, String, Guid, String, IVsUIHierarchy, UInt32, IntPtr, IServiceProvider, IVsWindowFrame) and OpenSpecificEditor methods check whether an IVsEditorFactory implements IVsEditorFactoryChooser and if so, delegate to the chosen IVsEditorFactory. For example, the XmlEditorFactoryChooser sniffs an XML file to determine the best editor factory based on the contents of the file (XSD DataSet, WPF XAML, Workflow XAML, etc.).

Show: