示例#1
0
        /// <summary>
        /// Initialize a new instance of the <see cref="Slide"/> class.
        /// </summary>
        public Slide(SlidePart xmlSldPart, SlideNumber sldNum, IPreSettings preSettings)
        {
            _xmlSldPart   = xmlSldPart ?? throw new ArgumentNullException(nameof(xmlSldPart));
            _sldNumEntity = sldNum ?? throw new ArgumentNullException(nameof(SlideNumber));
            _preSettings  = preSettings ?? throw new ArgumentNullException(nameof(preSettings));

            _shapes          = new Lazy <List <ShapeEx> >(GetShapes);
            _backgroundImage = new Lazy <ImageEx>(TryGetBackground);
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Slide"/> class.
        /// </summary>
        public Slide(SlidePart sdkSldPart, SlideNumber sldNum, IPreSettings preSettings)
        {
            _sdkSldPart   = sdkSldPart ?? throw new ArgumentNullException(nameof(sdkSldPart));
            _sldNumEntity = sldNum ?? throw new ArgumentNullException(nameof(SlideNumber));
            _preSettings  = preSettings ?? throw new ArgumentNullException(nameof(preSettings));

            _shapes          = new Lazy <ShapeCollection>(GetShapeCollection);
            _backgroundImage = new Lazy <ImageEx>(TryGetBackground);
        }