←Select platform

AnnAutomationObject Class

Summary
Defines all the properties needed to automate an annotation object.
Syntax
C#
Objective-C
C++/CLI
Java
public class AnnAutomationObject 
@interface LTAnnAutomationObject : NSObject 
public class AnnAutomationObject 
public: 
   ref class AnnAutomationObject 
Remarks

To automate an annotation object, create an instance of this class, specifying any properties. Then add it to the AnnAutomationManager.Objects collection. At any time, you can enumerate the AnnAutomationManager.Objects collection and add/remove/modify any of its properties.

The AnnAutomationManager.CreateDefaultObjects method creates the default AnnAutomationObject objects for the default annotation objects.

LEADTOOLS will create the automation properties for the default annotation objects. You can change any property behavior by overriding members of this class or deriving your own.

Example
C#
using Leadtools.Annotations.Automation; 
using Leadtools.Annotations.Engine; 
using Leadtools.Codecs; 
using Leadtools.Controls; 
using Leadtools.Annotations.WinForms; 
using Leadtools.Annotations.Rendering; 
 
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"), LeadLengthD.Create(2)); 
	} 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.