←Select platform

EnablePages Method

Summary

Marks the specified pages as enabled.

Syntax
C#
C++/CLI
public void EnablePages( 
   IEnumerable<int> pageNumbers 
) 
public:  
   void EnablePages( 
      IEnumerable<Int32>^ pageNumbers 
   ) 

Parameters

pageNumbers

Page numbers to enable. This should be one or more item with 1-based page numbers. Use null to mark all the pages in the document viewer.

Remarks

This method performs the following steps:

For each page number specified in pageNumbers.

  1. Finds the corresponding DocumentPage object and sets the value of DocumentPage.IsDeleted to false.

  2. Enables the corresponding AnnContainer, if any.

  3. Enables text operations of the page.

The Operation event will occur for each page with DocumentViewerOperation set to pageEnabled.

Note: Enabled pages are visible in the viewer and are active to user input (for instance, selecting text and editing annotations are possible) and will be part of the final document if it is converted.

Requirements

Target Platforms

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

Leadtools.Document.Viewer.WinForms Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.