beginUpdate Method

Summary

Stops the viewer from updating its parts and rendering the content if the document changes.

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

Remarks

The BeginUpdate method will cause the viewer to not update its parts and rendering the content. This is useful to increase the control's speed efficiency when adding or removing more than one page from the LEADDocument. When the user calls the EndUpdate method, the viewer will then update the parts to show all the changes that have been made.

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

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 viewer will not be applied.

When the final EndUpdate is called and updating is resumed, the viewer will render the new content of the parts.

Requirements

Target Platforms

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

Leadtools.Document.Viewer Assembly