CompareView Constructor

Summary

Initializes a new instance of this class.

Syntax
TypeScript
JavaScript
CompareView = function( 
   viewers 
) 
constructor( 
   viewers: DocumentViewer[] 
); 

Parameters

viewers

The DocumentViewers to bind the CompareView to.

Remarks

Exactly two DocumentViewers must be provided. The Document.Viewer at position 0 will be designated the original viewer – Delete DifferenceOperations will be painted to this viewer. The Document.Viewer at position 1 will be designated the modified viewer – Insert DifferenceOperations will be painted to this viewer.

When a CompareView object is instantiated, it will perform the following tasks:

  1. Set up an internal cache for storing text information from the viewers.
  2. Bind into the DocumentViewer.onOperation event for both viewers.

Specifically, the CompareView object will listen to the following functions:

  1. DocumentViewerOperation.SetDocument
  2. DocumentViewerOperation.GetPage and DocumentViewerOperation.RenderViewPage

Requirements

Target Platforms

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

Leadtools.Document.Viewer Assembly