Finds the AnnAutomationObject associated with a certain id.
public AnnAutomationObject FindObject(int id)
Public Function FindObject( _ByVal id As Integer _) As Leadtools.Annotations.AnnAutomationObject
public:Leadtools.Annotations.AnnAutomationObject^ FindObject(int id)
id
The id of the AnnAutomationObject to find
The AnnAutomationObject from Objects for this id if found; null (Nothing in VB) otherwise.
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.
using Leadtools;using Leadtools.Annotations;using Leadtools.WinForms;using Leadtools.Codecs;public void AnnAutomationManager_FindObject(AnnAutomationManager manager){// fine the line automation objectAnnAutomationObject obj = manager.FindObject(AnnAutomationManager.LineObjectId);if (obj != null)obj.Object.Pen = new AnnPen(Color.Blue, new AnnLength(1, AnnUnit.Pixel));}
Imports LeadtoolsImports Leadtools.AnnotationsImports Leadtools.WinFormsImports Leadtools.CodecsPublic Sub AnnAutomationManager_FindObject(ByVal manager As AnnAutomationManager)' fine the line automation objectDim obj As AnnAutomationObject = manager.FindObject(AnnAutomationManager.LineObjectId)If Not obj Is Nothing Thenobj.Object.Pen = New AnnPen(Color.Blue, New AnnLength(1, AnnUnit.Pixel))End IfEnd Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
