←Select platform

EnablePages Method

Summary

Marks the specified pages as enabled.

Syntax
C#
VB
C++
public void EnablePages( 
   IEnumerable<int> pageNumbers 
) 
Public Sub EnablePages( 
   ByVal pageNumbers As IEnumerable(Of Integer) 
) 
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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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