Ejemplo n.º 1
0
        public void TestFitToWidthWithoutAspectRatio()
        {
            Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes   = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames);
            Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.FitToSlideWidth, _shapeNames);
            float slideWidth  = Pres.PageSetup.SlideWidth;
            float slideHeight = Pres.PageSetup.SlideHeight;

            _resizeLab.FitToWidth(actualShapes, slideWidth, slideHeight, false);
            CheckShapes(expectedShapes, actualShapes);
        }
Ejemplo n.º 2
0
        public void TestFitToWidthWithoutAspectRatio()
        {
            var actualShapes   = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames);
            var expectedShapes = GetShapes(SlideNo.FitToSlideWidth, _shapeNames);
            var slideWidth     = Pres.PageSetup.SlideWidth;
            var slideHeight    = Pres.PageSetup.SlideHeight;

            _resizeLab.FitToWidth(actualShapes, slideWidth, slideHeight, false);
            CheckShapes(expectedShapes, actualShapes);
        }