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)

public interface IVsEditorFactoryChooser

The IVsEditorFactoryChooser type exposes the following members.

Public methodChooseEditorFactoryChooses the correct editor factory.

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.).