Each automation object must have an object id that is a unique integer value. The AnnAutomationManager class defines the object ids for the default annotation objects such as EllipseObjectId and RectangleObjectId. For user-defined objects, use UserObjectId first then add 1 to this value for each new user object.
For an example, refer to AnnAutomationManager.FindObjectById.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2