C# Класс RIM.VSNDK_Package.EditorFactory

Наследование: IVsEditorFactory, IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : int

Close the factory

CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, IntPtr punkDocDataExisting, IntPtr &ppunkDocView, IntPtr &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int

Create an instance of the custom editor

Dispose ( ) : void

IDisposable Constructor

EditorFactory ( VSNDK_PackagePackage package ) : System

Constructor

GetService ( Type serviceType ) : object

Private function to return the required service.

MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int

This method is called by the Environment (inside IVsUIShellOpenDocument:: OpenStandardEditor and OpenSpecificEditor) to map a LOGICAL view to a PHYSICAL view.

SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int

Used for initialization of the editor in the environment

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

IDisposable Constructor Override

Описание методов

Close() публичный Метод

Close the factory
public Close ( ) : int
Результат int

CreateEditorInstance() публичный Метод

Create an instance of the custom editor
public CreateEditorInstance ( uint grfCreateDoc, string pszMkDocument, string pszPhysicalView, IVsHierarchy pvHier, uint itemid, IntPtr punkDocDataExisting, IntPtr &ppunkDocView, IntPtr &ppunkDocData, string &pbstrEditorCaption, System.Guid &pguidCmdUI, int &pgrfCDW ) : int
grfCreateDoc uint Behaviour Flags
pszMkDocument string Document to be opened.
pszPhysicalView string Name of the view
pvHier IVsHierarchy Pointer to the IVSHierarchy
itemid uint Item ID for this instance
punkDocDataExisting System.IntPtr This parameter is used to determine if a document buffer (DocData object) has already been created
ppunkDocView System.IntPtr Pointer to the IUnknown interface for the DocView object
ppunkDocData System.IntPtr Pointer to the IUnknown interface for the DocData object
pbstrEditorCaption string Caption mentioned by the editor for the doc window
pguidCmdUI System.Guid the Command UI Guid. Any UI element that is visible in the editor has to use this GUID. This is specified in the .vsct file
pgrfCDW int Flags for CreateDocumentWindow
Результат int

Dispose() публичный Метод

IDisposable Constructor
public Dispose ( ) : void
Результат void

EditorFactory() публичный Метод

Constructor
public EditorFactory ( VSNDK_PackagePackage package ) : System
package VSNDK_PackagePackage
Результат System

GetService() публичный Метод

Private function to return the required service.
public GetService ( Type serviceType ) : object
serviceType System.Type
Результат object

MapLogicalView() публичный Метод

This method is called by the Environment (inside IVsUIShellOpenDocument:: OpenStandardEditor and OpenSpecificEditor) to map a LOGICAL view to a PHYSICAL view.
public MapLogicalView ( System.Guid &rguidLogicalView, string &pbstrPhysicalView ) : int
rguidLogicalView System.Guid
pbstrPhysicalView string
Результат int

SetSite() публичный Метод

Used for initialization of the editor in the environment
public SetSite ( Microsoft.VisualStudio.OLE.Interop.IServiceProvider psp ) : int
psp Microsoft.VisualStudio.OLE.Interop.IServiceProvider pointer to the service provider. Can be used to obtain instances of other interfaces
Результат int