function Leadtools.Annotations.Automation.AnnAutomation()
The AnnAutomation class links a AnnContainer object and a IAnnAutomationControl object together.
An automated annotation application usually creates one AnnAutomation object per annotation window. Therefore, a single document application typically has one AnnAutomation object, one AnnContainer and one IAnnAutomationControl object together. A multiple document application has one AnnAutomation per annotation form.
For more information, refer to Implementing Annotations
For an example, refer to AnnAutomationManager.