IEditorContext Interface
Information for Developers
An instance of IEditorContext is returned using the GetEditorContext() method in the IHost interface (see IHost Interface). IEditorContext gives access to opened Flare documents in the editor.
[Menu Proxy — Headings — Online — Depth3 ]
Events
- DocumentSwitched Occurs when the active document changes.
Methods
- IDocument GetActiveDocument() Returns the currently active IDocument. See IDocument Interface.
- IEnumerable<IDocument> GetDocuments() Returns a System.Collections.IEnumerable containing all the IDocument(s) currently open. See IDocument Interface.
- XmlSchema GetMadCapSchema() Returns the System.Xml.Shema.XmlSchema of available MadCap element names.
- IDocument OpenDocument(string) Opens the given file path and returns the associated IDocument. See IDocument Interface.
- IDocument OpenDocument(string, EditorView) Opens the given file path in the EditorView passed in and returns the associated IDocument. See EditorView Enumeration and IDocument Interface.