←Select platform

CompareView Constructor

Summary

Initializes a new instance of this class.

Syntax
C#
VB
C++
Public Sub New(ByVal viewers As IList(Of DocumentViewer)) 
 MyBase.New 

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 DifferenceOperation will be painted to this viewer. The Document.Viewer at position 1 will be designated the modified viewer – Insert DifferenceOperation 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.WinForms Assembly