Documentation > CMS Template API Library > PaginateResultBase > Count

Count

After the call to Util.Paginate, this will return the number of items in the sub list for the current page.

Type

System.Int32

Code Example

C#

Sample:

             List<Asset> pressReleases  = folder.GetFileList();
             PaginateResult result = Util.Paginate(pressReleases, 10);
             
             Out.WriteLine("The number of items on this page is {0}",result.Count); 
            
             

Connect with Crownpeak