EditorFactory Constructor (Package^)
Visual Studio 2015
Creates an instance of the EditorFactory class.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- package
-
Type:
Microsoft.VisualStudio.Shell::Package^
The package object.
Sets the IServiceProvider site through which the package can request services.
The following example is from the EditorFactory.cs source file.
[C#]
[CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
public class EditorFactory : IVsEditorFactory
{
Microsoft.VisualStudio.Shell.Package package;
IServiceProvider site;
public EditorFactory(Microsoft.VisualStudio.Shell.Package package)
{
this.package = package;
this.site = package;
}
...
}
Show: