public void TestAdjustVisualHeightProportionallyWithoutAspectRatio()
        {
            Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes   = GetShapes(SlideNo.AdjustProportionallyOrigin, _shapeNames);
            Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.AdjustVisualHeightProportionally, _shapeNames);
            actualShapes.LockAspectRatio = MsoTriState.msoFalse;

            _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual;
            _resizeLab.AdjustProportionallyProportionList = _proportionList;
            _resizeLab.AdjustHeightProportionally(actualShapes);
            CheckShapes(expectedShapes, actualShapes);
        }
Ejemplo n.º 2
0
        public void TestAdjustVisualHeightProportionallyWithoutAspectRatio()
        {
            var actualShapes   = GetShapes(SlideNo.AdjustProportionallyOrigin, _shapeNames);
            var expectedShapes = GetShapes(SlideNo.AdjustVisualHeightProportionally, _shapeNames);

            actualShapes.LockAspectRatio = MsoTriState.msoFalse;

            _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual;
            _resizeLab.AdjustProportionallyProportionList = _proportionList;
            _resizeLab.AdjustHeightProportionally(actualShapes);
            CheckShapes(expectedShapes, actualShapes);
        }