Compartilhar via


IVsEditorFactoryChooser Interface

Definition

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

public interface class IVsEditorFactoryChooser
public interface class IVsEditorFactoryChooser
__interface IVsEditorFactoryChooser
[System.Runtime.InteropServices.Guid("00462323-0C58-4B10-BC63-95ED7427744C")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsEditorFactoryChooser
[<System.Runtime.InteropServices.Guid("00462323-0C58-4B10-BC63-95ED7427744C")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsEditorFactoryChooser = interface
Public Interface IVsEditorFactoryChooser
Attributes

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

Methods

ChooseEditorFactory(String, IVsHierarchy, UInt32, IntPtr, Guid, Guid, Guid)

Chooses the correct editor factory.

Applies to