Bloom.Book.Book.GetPageByIndex C# (CSharp) Метод

GetPageByIndex() публичный Метод

public GetPageByIndex ( int pageIndex ) : IPage
pageIndex int
Результат IPage
        public IPage GetPageByIndex(int pageIndex)
        {
            // index must be >= 0
            if (pageIndex < 0) return null;

            // index must be less than the number of pages
            var pages = GetPages().ToList();
            if (pages.Count <= pageIndex) return null;

            return pages[pageIndex];
        }
Book