Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

DocumentViewerBookmarks Class






Members 
Manages the bookmarks and table of content in this document viewer.
Object Model
Syntax
public class DocumentViewerBookmarks 
'Declaration
 
Public Class DocumentViewerBookmarks 
'Usage
 
Dim instance As DocumentViewerBookmarks
public ref class DocumentViewerBookmarks 
Remarks

DocumentViewerBookmarks can be accessed by the Bookmarks property.

This class manages the bookmarks of the current Document set in the document viewer.

Document bookmarks and table of content is parsed from the Document set the in the viewer using the DocumentStructure class. Each is a DocumentBookmark object that specifies the properties of an entry into the table of content as well as any children items.

When DocumentViewer is created and the value of BookmarksContainer is null, then bookmarks support is not required by the application and Bookmarks will be null.

When the value of BookmarksContainer is not null, then it should be an existing control in the application that will be used as the parent UI element to where DocumentViewerBookmarks creates its UI controls.

In the Windows Forms platform, a TreeView is created during CreateDocumentViewer and added as a child control to BookmarksContainer.

When SetDocument is called to set a new Document in the viewer, the following occurs:

The tree view control can be accessed through TreeView. DocumentViewerBookmarks handles all the necessary mouse/touch and keyboard events to handle the user interface interaction with the bookmarks. When the user clicks on a bookmarks or presses "Enter" while the control has the focus and a selected item, then the following occurs:

  1. The Operation fires with DocumentViewerOperation.GotoBookmark, the selected DocumentBookmark in Data1 and IsPostOperation set to false. This allows the application to intercept this event and change the default behavior by setting the value of Abort to true.

  2. If the user did not abort the operation, GotoBookmark is called with the selected DocumentBookmark object. The viewer will perform the action of the bookmark Target and go to the specified target page and uses the optional fit and zoom percentage specified.

  3. If the user did not abort the operation, then Operation will fire again with IsPostOperation set to true to indicate that the operation was completed.

Using LEADTOOLS Document Viewer
Example

For an example, refer to DocumentViewer.

Requirements

Target Platforms

See Also

Reference

DocumentViewerBookmarks Members
Leadtools.Documents.UI Namespace
Using LEADTOOLS Document Viewer

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features