Text Viewer ActiveX Control

GetPageCount

 

Return the total count of the page.

Public Function GetPageCount() as Integer  

 

 No Parameter

Return Value
return the total count of the page

Example

   

VB.NET Syntax
Dim imgList As ImageList = New ImageList()
Dim i As Integer
Dim count As Integer = AxTextReaderAx1.GetPageCount() - 1
For i = 0 To count
  Dim image As Image
  image = AxTextReaderAx1.GetPageThumbnail(i)
  imgList.ImageSize = New System.Drawing.Size(image.Width, image.Height)
  imgList.Images.Add(image)
Next


   

Visual Basic Syntax
 For i = 0 To TextReaderAx1.GetPageCount - 1
  List1.AddItem "Page " + Str(i + 1)
Next