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

A chooser editor factory will sample the input file to determine the correct editor factory to use. The OpenStandardEditor 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.).

Return to top
Show: