Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
MaximumNumberOfPages Property
See Also 
Leadtools.Twain Namespace > TwainProperties Structure : MaximumNumberOfPages Property




Gets or sets the maximum number of pages to get from the TWAIN source.

Syntax

Visual Basic (Declaration) 
Public Property MaximumNumberOfPages As Integer
Visual Basic (Usage)Copy Code
Dim instance As TwainProperties
Dim value As Integer
 
instance.MaximumNumberOfPages = value
 
value = instance.MaximumNumberOfPages
C# 
public int MaximumNumberOfPages {get; set;}
Managed Extensions for C++ 
public: __property int get_MaximumNumberOfPages();
public: __property void set_MaximumNumberOfPages( 
   int value
);
C++/CLI 
public:
property int MaximumNumberOfPages {
   int get();
   void set (int value);
}

Return Value

The maximum number of pages to get from the TWAIN source. (If the function updates this field to -1, it means that the number of pages is unlimited.)

Example

Refer to ImageResolution example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also