public void TestAlignHorizontalDefault() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults; _shapeNames = new List <string> { UnrotatedRectangle, Oval, RotatedArrow, RotatedRectangle }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignHorizontalCenter(actualShapes, slideHeight); PpOperations.SelectSlide(AlignShapesHorizontalDefaultNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignOneHorizontalDefault() { PositionsLabMain.AlignReferToPowerpointDefaults(); _shapeNames = new List <string> { RotatedRectangle }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignHorizontalCenter(actualShapes, slideHeight); PpOperations.SelectSlide(AlignOneShapeHorizontalDefaultNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignOneHorizontalDefault() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.PowerpointDefaults; _shapeNames = new List <string> { RotatedRectangle }; PowerPoint.ShapeRange actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); float slideHeight = Pres.PageSetup.SlideHeight; PositionsLabMain.AlignHorizontalCenter(actualShapes, slideHeight); PpOperations.SelectSlide(AlignOneShapeHorizontalDefaultNo); PowerPoint.ShapeRange expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }
public void TestAlignHorizontalToRefShape() { PositionsLabSettings.AlignReference = PositionsLabSettings.AlignReferenceObject.SelectedShape; _shapeNames = new List <string> { RotatedRectangle, UnrotatedRectangle, Oval, RotatedArrow }; var actualShapes = GetShapes(OriginalShapesSlideNo, _shapeNames); var slideHeight = Pres.PageSetup.SlideHeight; Action <PowerPoint.ShapeRange, float> positionsAction = (shapes, height) => PositionsLabMain.AlignHorizontalCenter(shapes, height); ExecutePositionsAction(positionsAction, actualShapes, slideHeight); PpOperations.SelectSlide(AlignShapesHorizontalToRefShapeNo); var expectedShapes = PpOperations.SelectShapes(_shapeNames); CheckShapes(expectedShapes, actualShapes); }