Interface IEditorService
Interface for a service for getting a persisted project item document.
public interface IEditorService
Remarks
Get this service with IoC container.
Methods
GetEditor(IProjectItem, IScriptShell)
Gets the editor with its IEditorFactory.
IProjectItemDocument GetEditor(IProjectItem item, IScriptShell parentShell)
Parameters
item
IProjectItemProject item.
parentShell
IScriptShellShell which contains the editor.
Returns
- IProjectItemDocument
A IProjectItemDocument for editing the project item.
Exceptions
- InvalidOperationException
Thrown when no IEditorFactory is found.
HasEditor(IProjectItem)
Gets a value indicating whether there is a editor factory for this project item.
bool HasEditor(IProjectItem item)
Parameters
item
IProjectItemItem type to check.
Returns
- bool
True if this project item has an editor.