Exemple #1
0
        public void TestEqualizeVisualWidthWithoutAspectRatio()
        {
            Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes   = GetShapes(SlideNo.EqualizeOrigin, _shapeNames);
            Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.EqualizeVisualWidth, _shapeNames);
            actualShapes.LockAspectRatio = MsoTriState.msoFalse;

            _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual;
            _resizeLab.ResizeToSameWidth(actualShapes);
            CheckShapes(expectedShapes, actualShapes);
        }
Exemple #2
0
        public void TestEqualizeVisualWidthWithoutAspectRatio()
        {
            var actualShapes   = GetShapes(SlideNo.EqualizeOrigin, _shapeNames);
            var expectedShapes = GetShapes(SlideNo.EqualizeVisualWidth, _shapeNames);

            actualShapes.LockAspectRatio = MsoTriState.msoFalse;

            _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual;
            _resizeLab.ResizeToSameWidth(actualShapes);
            CheckShapes(expectedShapes, actualShapes);
        }