예제 #1
0
        public static Shape CutAndPaste(Shape shape, Slide slide)
        {
            string tempFilePath = FileDir.GetTemporaryPngFilePath();

            ExportShape(shape, tempFilePath);
            Shape resultShape = ImportPictureToSlide(shape, slide, tempFilePath);

            FileDir.TryDeleteFile(tempFilePath);
            return(resultShape);
        }
예제 #2
0
        public static Shape AddSlideAsShape(PowerPointSlide slideToAdd, PowerPointSlide targetSlide)
        {
            string tempFilePath = FileDir.GetTemporaryPngFilePath();

            ExportSlide(slideToAdd, tempFilePath);
            Shape slideAsShape = ImportPictureToSlide(slideToAdd, targetSlide, tempFilePath);

            FileDir.TryDeleteFile(tempFilePath);
            return(slideAsShape);
        }