Finds the AnnAutomationObject associated with a certain ID.
public AnnAutomationObject FindObject(int id)
Public Function FindObject( _ByVal id As Integer _) As Leadtools.Windows.Annotations.AnnAutomationObject
public:Leadtools.Windows.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.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Demos;using Leadtools.Help;private void AnnAutomationManager_FindObject(AnnAutomationManager manager){// fine the line automation objectAnnAutomationObject autObj = manager.FindObject(AnnAutomationManager.LineObjectId);if (autObj != null){autObj.Object.Stroke = Colors.Blue;autObj.Object.StrokeThickness = 2.0;}}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsPrivate Sub AnnAutomationManager_FindObject(ByVal manager As AnnAutomationManager)' fine the line automation objectDim autObj As AnnAutomationObject = manager.FindObject(AnnAutomationManager.LineObjectId)If Not autObj Is Nothing ThenautObj.Object.Stroke = Colors.BlueautObj.Object.StrokeThickness = 2.0End IfEnd Sub
using Leadtools.Windows.Controls;using Leadtools.Windows.Annotations;using Leadtools.Examples;using Leadtools.Silverlight.Demos;//using Leadtools.Help;private void AnnAutomationManager_FindObject(AnnAutomationManager manager){// fine the line automation objectAnnAutomationObject autObj = manager.FindObject(AnnAutomationManager.LineObjectId);if (autObj != null){autObj.Object.Stroke = Colors.Blue;autObj.Object.StrokeThickness = 2.0;}}
Imports Leadtools.Windows.ControlsImports Leadtools.Windows.AnnotationsImports Leadtools.Silverlight.Demos'using Leadtools.Help;Private Sub AnnAutomationManager_FindObject(ByVal manager As AnnAutomationManager)' fine the line automation objectDim autObj As AnnAutomationObject = manager.FindObject(AnnAutomationManager.LineObjectId)If Not autObj Is Nothing ThenautObj.Object.Stroke = Colors.BlueautObj.Object.StrokeThickness = 2.0End 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
