EditorFactory EditorFactory EditorFactory EditorFactory EditorFactory Class

Definition

Important

This API is not CLS-compliant.

This class provides a default editor factory implementation that hosts the Visual Studio core editor.

public ref class EditorFactory : Microsoft::VisualStudio::Shell::Interop::IVsEditorFactory
[Windows::Foundation::Metadata::WebHostHidden]
class EditorFactory : Microsoft::VisualStudio::Shell::Interop::IVsEditorFactory
[System.CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public class EditorFactory : Microsoft.VisualStudio.Shell.Interop.IVsEditorFactory
type EditorFactory = class
    interface IVsEditorFactory
Public Class EditorFactory
Implements IVsEditorFactory
Inheritance
EditorFactoryEditorFactoryEditorFactoryEditorFactoryEditorFactory
Attributes
Implements

Remarks

Inherit from this class and add the [ComVisible] and [Guid] attributes, and then specify the EditorFactoryGuid, EditorFactoryGuid and EditorName variables in your Registration class.

Constructors

EditorFactory() EditorFactory() EditorFactory() EditorFactory() EditorFactory()

Initializes a new instance of EditorFactory.

EditorFactory(Package) EditorFactory(Package) EditorFactory(Package) EditorFactory(Package) EditorFactory(Package)

Creates an instance of the EditorFactory class.

Fields

GuidVSBufferDetectLangSid GuidVSBufferDetectLangSid GuidVSBufferDetectLangSid GuidVSBufferDetectLangSid GuidVSBufferDetectLangSid

Gets a GUID value in IVsUserData that, when set to false, will stop the core editor for searching for a different language service.

Properties

CodePagePrompt CodePagePrompt CodePagePrompt CodePagePrompt CodePagePrompt

Gets and sets flags to prompt user for an encoding on an open with specified codepage.

Methods

Close() Close() Close() Close() Close()

Releases all service provides and sets the package object to null.

CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32) CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32) CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32) CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32) CreateEditorInstance(UInt32, String, String, IVsHierarchy, UInt32, IntPtr, IntPtr, IntPtr, String, Guid, Int32)

Used to create the Visual Studio core editor, an editor that supports data/view separation.

CreateEditorView(String, IVsTextLines, String, String, Guid) CreateEditorView(String, IVsTextLines, String, String, Guid) CreateEditorView(String, IVsTextLines, String, String, Guid) CreateEditorView(String, IVsTextLines, String, String, Guid) CreateEditorView(String, IVsTextLines, String, String, Guid)

Creates a code window with the Visual Studio core editor.

Finalize() Finalize() Finalize() Finalize() Finalize()

Destructor for the class.

GetExtensions() GetExtensions() GetExtensions() GetExtensions() GetExtensions()

Returns a list of file extensions registered for this editor factory.

GetLanguageService(String) GetLanguageService(String) GetLanguageService(String) GetLanguageService(String) GetLanguageService(String)

Gets the GUID of the language service registered for this file extension under the registry key HKLM\Software\Microsoft\Visual Studio\10.0\Languages\File Extensions.

GetLanguageServiceGuid() GetLanguageServiceGuid() GetLanguageServiceGuid() GetLanguageServiceGuid() GetLanguageServiceGuid()

Gets the language service GUID.

GetPackage() GetPackage() GetPackage() GetPackage() GetPackage()

Gets the Package object.

GetRegisteredEditor(String) GetRegisteredEditor(String) GetRegisteredEditor(String) GetRegisteredEditor(String) GetRegisteredEditor(String)

Gets the GUID of the highest-priority editor registered for this extension. This will also pick up user-defined associations between file extensions and editors

GetRegisteredEditorInfo(String) GetRegisteredEditorInfo(String) GetRegisteredEditorInfo(String) GetRegisteredEditorInfo(String) GetRegisteredEditorInfo(String)

Gets the EditorFactory.EditorInfo for the specified extension.

GetSite() GetSite() GetSite() GetSite() GetSite()

Gets the main service provider.

GetUserDefinedEditor(String) GetUserDefinedEditor(String) GetUserDefinedEditor(String) GetUserDefinedEditor(String) GetUserDefinedEditor(String)

Gets the GUID of the editor that the user has defined for this file extension.

IsOurFileFormat(String) IsOurFileFormat(String) IsOurFileFormat(String) IsOurFileFormat(String) IsOurFileFormat(String)

Checks whether there is an editor that can handle this extension.

IsRegisteredExtension(String) IsRegisteredExtension(String) IsRegisteredExtension(String) IsRegisteredExtension(String) IsRegisteredExtension(String)

Determines if a file extension is registered with this editor factory.

MapLogicalView(Guid, String) MapLogicalView(Guid, String) MapLogicalView(Guid, String) MapLogicalView(Guid, String) MapLogicalView(Guid, String)

Maps a logical view to a physical view.

SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider) SetSite(IServiceProvider)

Sets the service provider.

Applies to