Table of Contents

Interface IEditorService

Namespace
Loehnert.Lisrt.Scripting.Editor
Assembly
Loehnert.Lisrt.Scripting.dll

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 IProjectItem

Project item.

parentShell IScriptShell

Shell 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 IProjectItem

Item type to check.

Returns

bool

True if this project item has an editor.