EditorFactory Class

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

System.Object
  Microsoft.VisualStudio.Package.EditorFactory

[CLSCompliantAttribute(false)]
[ComVisibleAttribute(true)]
public class EditorFactory : IVsEditorFactory

NameDescription
System_CAPS_pubmethodEditorFactory()

Initializes a new instance of EditorFactory.

System_CAPS_pubmethodEditorFactory(Package)

Creates an instance of the EditorFactory class.

NameDescription
System_CAPS_pubpropertyCodePagePrompt

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

NameDescription
System_CAPS_pubmethodClose()

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

System_CAPS_pubmethodCreateEditorInstance(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.

System_CAPS_pubmethodCreateEditorView(String, IVsTextLines, String, String, Guid)

Creates a code window with the Visual Studio core editor.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Destructor for the class.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetExtensions()

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

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLanguageService(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.

System_CAPS_pubmethodGetLanguageServiceGuid()

Gets the language service GUID.

System_CAPS_protmethodGetPackage()

Gets the Package object.

System_CAPS_pubmethodGetRegisteredEditor(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

System_CAPS_pubmethodGetRegisteredEditorInfo(String)

Gets the EditorFactory.EditorInfo for the specified extension.

System_CAPS_protmethodGetSite()

Gets the main service provider.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetUserDefinedEditor(String)

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

System_CAPS_pubmethodIsOurFileFormat(String)

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

System_CAPS_pubmethodIsRegisteredExtension(String)

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

System_CAPS_pubmethodMapLogicalView(Guid, String)

Maps a logical view to a physical view.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetSite(IServiceProvider)

Sets the service provider.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticGuidVSBufferDetectLangSid

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

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: