beginUpdate Method

Summary

Stops the viewer from updating the interactive modes if any change is applied. This is useful to increase the control's efficiency.

Syntax

JavaScript Syntax
ImageViewerInteractiveModes.prototype.beginUpdate = function() 
TypeScript Syntax
beginUpdate(): void; 

Remarks

When items are added or removed from this collection, the object will might have to call ImageViewerInteractiveMode.Start and ImageViewerInteractiveMode.Stop to reset the interactive modes and stop any that is working since the order or the mode(s) that is currently enabled might change. To optimize this operation, call BeginUpdate before modifying the collection and EndUpdate after you are done. This way the object will not update the modes until all the items are added/remove and in their final state.

Calls to BeginUpdate and EndUpdate are accumulative. Each call to BeginUpdate must be matched with a corresponding call to EndUpdate or else updates to the transform won't be applied.

For more information, refer to Image Viewer Interactive Modes.

Example

For an example, refer to ImageViewerInteractiveModes.

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.Controls Assembly