Which approach is best suited depends on your needs, as well as on your skills:
| Approach | Complexity Of Task | Time Of Use | Required Skills |
|---|---|---|---|
| C# Code Interpreter | Low | Short | Medium |
| Script AddIns | Low/Medium | Short | Medium |
| AddIns | Medium/High | Long | Low (User); High (Developer) |
The Object Model defines existance of and structural relationships between class instances. The static class Gregor.WebEdit.WebEditApp, although it is not instantiated, is regared as the root of the object model; it has static properties that return references to other objects.
An easy way to retrieve information is the Gregor.WebEdit.Vars module, which returns information about the current document, its contents, and so on.
Command managers are available through WebEditApp's static properties, as well as through the CommandManagers collection. Their nature ist twofold: they are charged with executing commands, and they provide the principle methods for interacting with the application. Whenever a method is provided by a command manager, it should be preferred over methods provided by other objects.
Extension Points can be found at various places. When the functionality you provide is anticipated by an existing Extension Point, you should register an extension.
See Also: Extension Points | Code Interpreter | AddIns