all files / pages/ pdf-section-page-collection.js

52.63% Statements 10/19
0% Branches 0/2
25% Functions 2/8
52.63% Lines 10/19
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35                                                  
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PdfSectionPageCollection = (function () {
        function PdfSectionPageCollection(section) {
            this.pdfSection = null;
            if (section == null) {
                throw Error('ArgumentNullException("section")');
            }
            this.section = section;
        }
        Object.defineProperty(PdfSectionPageCollection.prototype, "section", {
            get: function () {
                return this.pdfSection;
            },
            set: function (value) {
                this.pdfSection = value;
            },
            enumerable: true,
            configurable: true
        });
        PdfSectionPageCollection.prototype.contains = function (page) {
            return this.section.contains(page);
        };
        PdfSectionPageCollection.prototype.remove = function (page) {
            this.section.remove(page);
        };
        PdfSectionPageCollection.prototype.add = function () {
            return this.section.add();
        };
        return PdfSectionPageCollection;
    }());
    exports.PdfSectionPageCollection = PdfSectionPageCollection;
});