Finds the specified AnnAutomationObject by id.
id
The id of the AnnAutomationObject to find.
The AnnAutomationObject for the specified id, or null if no AnnAutomationObject with that id can be found.
The possible values for id are:
You can also use FindObject if you have an instance of AnnObject and want to find the automation object associated with its type.
This method enumerates all of the AnnAutomationObject items in the Objects collection and compares AnnAutomationObject.Id with id.
This example changes the line color of new line automation objects to blue: