Cocktail Help Reference
TotalNumberOfPages Property
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IPager<T> Interface : TotalNumberOfPages Property



Glossary Item Box

Returns the total number of pages.

Syntax

Visual Basic (Declaration) 
ReadOnly Property TotalNumberOfPages As Integer
Visual Basic (Usage)Copy Code
Dim instance As IPager(Of T)
Dim value As Integer
 
value = instance.TotalNumberOfPages
C# 
int TotalNumberOfPages {get;}
C++/CLI 
property int TotalNumberOfPages {
   int get();
}

Remarks

This property will return -1 until all pages are fetched or the TotalDataSourceItemCount is known. The number will be an approximation when a large number of inserts and deletes have occurred.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.