public void TwoShapesSelection()
        {
            Shapes shs = ws.Shapes;
            Shape  sh1 = shs.AddLine(100, 100, 300, 200);
            Shape  sh2 = shs.AddTextbox(
                Mso.MsoTextOrientation.msoTextOrientationHorizontal,
                200, 200, 500, 400);
            Rect boundingRect = new Rect(100, 100, 600, 500);

            sh1.Select(true);
            sh2.Select(false);
            Rect r = svm.Bounds;

            Console.WriteLine(r);
            Assert.AreEqual(boundingRect, r,
                            "Incorrect bounding rectangle for multiple selected shapes.");
        }
        public void ApplyImageReferenceInsertion(string source, string fontFamily, string fontColor,
                                                 int fontSize, string textBoxColor, Alignment citationTextAlignment)
        {
            Microsoft.Office.Interop.PowerPoint.Shape imageRefShape = Shapes.AddTextbox(MsoTextOrientation.msoTextOrientationHorizontal, 0, 0, SlideWidth,
                                                                                        20);
            imageRefShape.TextFrame2.TextRange.Text = "Picture taken from: " + source;

            if (!StringUtil.IsEmpty(textBoxColor))
            {
                imageRefShape.Fill.BackColor.RGB
                    = GraphicsUtil.ConvertColorToRgb(StringUtil.GetColorFromHexValue(textBoxColor));
                imageRefShape.Fill.Transparency = 0.2f;
            }
            imageRefShape.TextFrame2.TextRange.TrimText().Font.Fill.ForeColor.RGB
                = GraphicsUtil.ConvertColorToRgb(StringUtil.GetColorFromHexValue(fontColor));
            imageRefShape.TextEffect.FontName  = StringUtil.IsEmpty(fontFamily) ? "Tahoma" : fontFamily;
            imageRefShape.TextEffect.FontSize  = fontSize;
            imageRefShape.TextEffect.Alignment = AlignmentToMsoTextEffectAlignment(citationTextAlignment);
            imageRefShape.Top = SlideHeight - imageRefShape.Height;

            AddTag(imageRefShape, Tag.ImageReference, "true");
            ChangeName(imageRefShape, EffectName.ImageReference);
        }