public AnnAutomationObject FindObjectById( int id )
function Leadtools.Annotations.Automation.AnnAutomationManager.FindObjectById( id )
The possible values for id are:
This method enumerates all of the AnnAutomationObject items in the Objects collection and compares AnnAutomationObject.Id with id.
[TestMethod] public void AnnAutomationManager_FindObjectById() { // find the line automation object AnnAutomationObject obj = _automation.Manager.FindObjectById(AnnObject.LineObjectId); if (obj != null) { obj.ObjectTemplate.Stroke = AnnStroke.Create(AnnSolidColorBrush.Create("Blue"), LeadLengthDHelper.Create(2)); } }
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