Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.29
|
Leadtools.Annotations.Automation Assembly > Leadtools.Annotations.Automation Namespace > AnnAutomation Class : Attach Method |
public virtual void Attach( IAnnAutomationControl automationControl )
'Declaration
Public Overridable Sub Attach( _ ByVal automationControl As IAnnAutomationControl _ )
public virtual void Attach( IAnnAutomationControl automationControl )
-(void) attach:(NSObject<LTIAnnAutomationControl>*) anAutomationControl;
public void attach(IAnnAutomationControl automationControl)
function Leadtools.Annotations.Automation.AnnAutomation.Attach( automationControl )
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, AttachContainerand 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.