public void TestFitToHeightWithoutAspectRatio()
        {
            Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes   = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames);
            Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.FitToSlideHeight, _shapeNames);
            float slideWidth  = Pres.PageSetup.SlideWidth;
            float slideHeight = Pres.PageSetup.SlideHeight;

            _resizeLab.FitToHeight(actualShapes, slideWidth, slideHeight, false);
            CheckShapes(expectedShapes, actualShapes);
        }
示例#2
0
        public void TestFitToHeightWithoutAspectRatio()
        {
            var actualShapes   = GetShapes(SlideNo.FitToSlideOrigin, _shapeNames);
            var expectedShapes = GetShapes(SlideNo.FitToSlideHeight, _shapeNames);
            var slideWidth     = Pres.PageSetup.SlideWidth;
            var slideHeight    = Pres.PageSetup.SlideHeight;

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