EditorFactory Constructor (Package^)

 

Creates an instance of the EditorFactory class.

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

public:
EditorFactory(
	Package^ package
)

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;
}
...
}
Return to top
Show: