←Select platform

BeginUpdateContainers Method

Summary

Stops the automation from passing events to the automation control while containers are being added or removed.

Syntax
C#
C++/CLI
Python
public void BeginUpdateContainers() 
public:  
   void BeginUpdateContainers() 
def BeginUpdateContainers(self): 
Remarks

The BeginUpdateContainers method will cause the automation to send events to the automation control. This is useful to increase the application speed and efficiency when adding or removing more than one container from the Containers. When the user calls the EndUpdateContainers method, the automation will then notify the automation control of changes that have been made to update its viewer.

For better visual results and for speed efficiency, it is recommended you surround multiple calls that will result in containers being added or removed between BeginUpdateContainers and EndUpdateContainers.

Calls to BeginUpdateContainers and EndUpdateContainers are accumulative. Each call to BeginUpdateContainers must be matched with a corresponding call to EndUpdateContainers or else updates to the automation containers will not be applied.

When the final EndUpdateContainers is called and updating is resumed, the automation control will be updated.

Requirements

Target Platforms

Help Version 22.0.2023.4.25
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.