Interface IEditorFactory
Factory class for a project editor.
public interface IEditorFactory
Properties
ProjectItemType
Gets the type of the project item.
Type ProjectItemType { get; }
Property Value
Methods
CanGetEditor(IProjectItem)
Gets an value indicating whether the IProjectItem can be opened with this factory.
bool CanGetEditor(IProjectItem projectItem)
Parameters
projectItem
IProjectItemProject item to check.
Returns
- bool
True if the item can be opened with this editor.
Remarks
Usually depending on the extension of the Name.
GetEditor(IProjectItem, IScriptShell)
Gets the editor for the project item.
IProjectItemDocument GetEditor(IProjectItem projectItem, IScriptShell parentShell)
Parameters
projectItem
IProjectItemProject item.
parentShell
IScriptShellShell which contains the editor.
Returns
- IProjectItemDocument
A persisted document for editing the project item.