←Select platform

Initialize Method

Summary

Initialize the annotation automations used by this DocumentViewerAnnotations.

Syntax
C#
VB
C++
public void Initialize() 
Public Sub Initialize() 
public:  
   void Initialize() 

Remarks

Initialize must be called by the application after this object finishes loading all the annotations containers of the current LEADDocument and the user has created the necessary annotation rendering engine and any other optional automation componets in response to DocumentViewerOperation.CreateAutomation. Refer to DocumentViewerAnnotations for more information.

The following occurs during Initialize

  1. AnnAutomationManager.CreateDefaultObjects is called to create the automation objects for all AnnAutomationManager.Objects

  2. The AnnAutomationObject.DrawDesignerType of all objects that derive from AnnTextReviewObject is replaced with an internal class that handles proper text selection (using DocumentViewerSelectTextInteractiveMode)

  3. The DrawDesignerType of SelectObjectId object type is set to null. This will remove the support for selecting annotations objects using rubber-banding. This mode does not work with other image viewer interactive modes

Example

For an example, refer to DocumentViewerAnnotations.

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