public void TestEqualizeVisualWidthAndHeight() { Microsoft.Office.Interop.PowerPoint.ShapeRange actualShapes = GetShapes(SlideNo.EqualizeOrigin, _shapeNames); Microsoft.Office.Interop.PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.EqualizeVisualBoth, _shapeNames); actualShapes.LockAspectRatio = MsoTriState.msoFalse; _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual; _resizeLab.ResizeToSameHeightAndWidth(actualShapes); CheckShapes(expectedShapes, actualShapes); }
public void TestEqualizeVisualWidthAndHeight() { var actualShapes = GetShapes(SlideNo.EqualizeOrigin, _shapeNames); var expectedShapes = GetShapes(SlideNo.EqualizeVisualBoth, _shapeNames); actualShapes.LockAspectRatio = MsoTriState.msoFalse; _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual; _resizeLab.ResizeToSameHeightAndWidth(actualShapes); CheckShapes(expectedShapes, actualShapes); }
public void TestEqualizeVisualAnchorTopLeft() { PowerPoint.ShapeRange actualShapes = GetShapes(SlideNo.AnchorOrigin, _shapeNames); PowerPoint.ShapeRange expectedShapes = GetShapes(SlideNo.AnchorVisualTopLeft, _shapeNames); actualShapes.LockAspectRatio = MsoTriState.msoFalse; _resizeLab.AnchorPointType = ResizeLabMain.AnchorPoint.TopLeft; _resizeLab.ResizeType = ResizeLabMain.ResizeBy.Visual; _resizeLab.ResizeToSameHeightAndWidth(actualShapes); CheckShapes(expectedShapes, actualShapes); }