Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents.UI Namespace > DocumentViewerAnnotations Class : Initialize Method |
public void Initialize()
'Declaration
Public Sub Initialize()
'Usage
Dim instance As DocumentViewerAnnotations instance.Initialize()
public: void Initialize();
Initialize must be called by the application after this object finishes loading all the annotations containers of the current Document 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
AnnAutomationManager.CreateDefaultObjects is called to create the automation objects for all AnnAutomationManager.Objects
The AnnAutomationObject.DrawDesignerType of all objects that derive from AnnTextReviewObject is replaced with an internal class that handles proper text selection (using DocumentViewerSelectTextInteractiveMode)
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
For an example, refer to DocumentViewerAnnotations.