←Select platform

Attach Method

Summary

Attaches this AnnAutomation object to a IAnnAutomationControl object.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public virtual void Attach( 
   IAnnAutomationControl automationControl 
) 
Public Overridable Sub Attach( _ 
   ByVal automationControl As Leadtools.Annotations.Core.IAnnAutomationControl _ 
)  
-(void) attach:(NSObject<LTIAnnAutomationControl>*) anAutomationControl; 
public void attach(IAnnAutomationControl automationControl) 
 function Leadtools.Annotations.Automation.AnnAutomation.Attach(  
   automationControl  
) 
public:  
   virtual void Attach( 
      IAnnAutomationControl^ automationControl 
   ) 

Parameters

automationControl
The automation control for this AnnAutomation. This value cannot be null.

Remarks

Use Attach, AttachContainer and Detach to associate a control that implements IAnnAutomationControl with an automation object.

The AnnAutomation constructor internally calls Attach, AttachContainer to associate the control with itself.

Using Attach, AttachContainer and Detach allows you to easily use one IAnnAutomationControl object to view multiple automation objects.

Attach, AttachContainer and Detach should be used when you are using the IAnnAutomationControl class with this AnnAutomation object (by creating the object using the AnnAutomation(AnnAutomationManager, IAnnAutomationControl) constructor).

This method will create a new container internally. To attach to an existing container, use AttachContainer.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly