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)
Syntax
'Declaration
<GuidAttribute("00462323-0C58-4B10-BC63-95ED7427744C")> _
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)> _
Public Interface IVsEditorFactoryChooser
[GuidAttribute("00462323-0C58-4B10-BC63-95ED7427744C")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsEditorFactoryChooser
[GuidAttribute(L"00462323-0C58-4B10-BC63-95ED7427744C")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IVsEditorFactoryChooser
[<GuidAttribute("00462323-0C58-4B10-BC63-95ED7427744C")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IVsEditorFactoryChooser = interface end
public interface IVsEditorFactoryChooser
The IVsEditorFactoryChooser type exposes the following members.
Methods
Name | Description | |
---|---|---|
ChooseEditorFactory | Chooses the correct editor factory. |
Top
Remarks
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.).