You are here: Plugin API > Library Reference > IHost Interface > IEditorContext Interface
IEditorContext Interface
An instance of IEditorContext is returned using the GetEditorContext() method in the IHost interface. IEditorContext gives access to opened MadCap documents in the editor.
Events
- DocumentSwitched - Occurs when the active document changes.
Methods
- IDocument GetActiveDocument() - Returns the currently active IDocument.
- IEnumerable<IDocument> GetDocuments() - Returns an IEnumerable containing all the IDocument(s) currently open.