Partager via


EditorFactory Class

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

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Déclaration
<ComVisibleAttribute(True)> _
<CLSCompliantAttribute(False)> _
Public Class EditorFactory _
    Implements IVsEditorFactory
'Utilisation
Dim instance As EditorFactory
[ComVisibleAttribute(true)]
[CLSCompliantAttribute(false)]
public class EditorFactory : IVsEditorFactory
[ComVisibleAttribute(true)]
[CLSCompliantAttribute(false)]
public ref class EditorFactory : IVsEditorFactory
[<ComVisibleAttribute(true)>]
[<CLSCompliantAttribute(false)>]
type EditorFactory =  
    class
        interface IVsEditorFactory
    end
public class EditorFactory implements IVsEditorFactory

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.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Package.EditorFactory

Thread Safety

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

See Also

Reference

EditorFactory Members

Microsoft.VisualStudio.Package Namespace

ProvideEditorFactoryAttribute