←Select platform

Pages Property

Summary
Gets or sets an array of integers that contain the pages numbers found in the file.
Syntax
C#
VB
Objective-C
C++
Java
public int[] Pages { get; set; } 
Public Property Pages As Integer() 
@property (nonatomic) NSArray* pages; 
public int[] getPages() 
public void setPages(int[] value) 
public:  
   property array<Int32>^ Pages 
   { 
      array<Int32>^ get() 
      void set(array<Int32>^ value) 
   } 

Property Value

An array of integers that contain the pages numbers found in the file.

Remarks

If the file contains valid LEADTOOLS Annotations, the value of Pages will be an array of integers which contain the number of each page found in the file where each page is an Annotations Container.

To get the number of pages (and their values) in the file, use the following code:

C# Snippet
// Get the number of pages 
int pageCount = info.Pages.Count; 
// Get the page numbers 
for (int i = 0; i < pageCount; i++) { 
  int pageNumber = info.Pages[i]; 
} 
JavaScript Snippet
// Get the number of pages 
var pageCount = info.get_pages().length; 
// Get the page numbers 
for (var i = 0; i < pageCount; i++) { 
  var pageNumber = info.get_pages()[i]; 
} 

Example

For an example, refer to GetInfo or GetInfoFromString.

Requirements

Target Platforms

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

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