Partilhar via


EditorFactory Constructors

Definition

Overloads

EditorFactory()

Initializes a new instance of EditorFactory.

EditorFactory(Package)

Creates an instance of the EditorFactory class.

EditorFactory()

Initializes a new instance of EditorFactory.

public:
 EditorFactory();
public:
 EditorFactory();
 EditorFactory();
public EditorFactory ();
Public Sub New ()

Applies to

EditorFactory(Package)

Creates an instance of the EditorFactory class.

public:
 EditorFactory(Microsoft::VisualStudio::Shell::Package ^ package);
public EditorFactory (Microsoft.VisualStudio.Shell.Package package);
new Microsoft.VisualStudio.Package.EditorFactory : Microsoft.VisualStudio.Shell.Package -> Microsoft.VisualStudio.Package.EditorFactory
Public Sub New (package As Package)

Parameters

package
Package

The package object.

Examples

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;  
}  
...  
}  

Remarks

Sets the IServiceProvider site through which the package can request services.

Applies to