Пример #1
0
        // Token: 0x06002B77 RID: 11127 RVA: 0x000C6614 File Offset: 0x000C4814
        internal DocumentPage GetPage(FixedDocument document, int fixedDocPageNumber)
        {
            if (fixedDocPageNumber < 0)
            {
                throw new ArgumentOutOfRangeException("fixedDocPageNumber", SR.Get("IDPNegativePageNumber"));
            }
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }
            DocumentPage page = document.GetPage(fixedDocPageNumber);

            return(new FixedDocumentSequenceDocumentPage(this, document.DocumentPaginator as DynamicDocumentPaginator, page));
        }
Пример #2
0
        /// <summary>
        /// Returns a FixedDocumentSequenceDocumentPage for the specified document and page number.
        /// </summary>
        internal DocumentPage GetPage(FixedDocument document, int fixedDocPageNumber)
        {
            if (fixedDocPageNumber < 0)
            {
                throw new ArgumentOutOfRangeException("fixedDocPageNumber", SR.Get(SRID.IDPNegativePageNumber));
            }

            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            DocumentPage innerDP = document.GetPage(fixedDocPageNumber);

            Debug.Assert(innerDP != null);

            // Now wrap inner DP and return it
            return(new FixedDocumentSequenceDocumentPage(this, document.DocumentPaginator as DynamicDocumentPaginator, innerDP));
        }
        /// <summary>
        /// Returns a FixedDocumentSequenceDocumentPage for the specified document and page number.
        /// </summary>
        internal DocumentPage GetPage(FixedDocument document, int fixedDocPageNumber)
        {
            if (fixedDocPageNumber < 0)
            {
                throw new ArgumentOutOfRangeException("fixedDocPageNumber", SR.Get(SRID.IDPNegativePageNumber));
            }

            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            DocumentPage innerDP = document.GetPage(fixedDocPageNumber);
            Debug.Assert(innerDP != null);

            // Now wrap inner DP and return it
            return new FixedDocumentSequenceDocumentPage(this, document.DocumentPaginator as DynamicDocumentPaginator, innerDP);
        }