Example #1
0
 public void TestRectOutlineEffect()
 {
     Microsoft.Office.Interop.PowerPoint.Shape shape = _designer.ApplyRectOutlineEffect(null, "#000000", 35);
     Assert.IsTrue(shape.Name.StartsWith(
                       EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Banner));
     Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type);
 }
Example #2
0
        public void TestRectOutlineEffect()
        {
            var shape = _designer.ApplyRectOutlineEffect(null, "#000000", 35);

            Assert.IsTrue(shape.Name.StartsWith(
                              EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Banner));
            Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type);
        }
 public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings)
 {
     var result = new List<Shape>();
     if (option.IsUseOutlineStyle)
     {
         var outlineOverlayShape = designer.ApplyRectOutlineEffect(imageShape, option.OutlineColor, 0);
         result.Add(outlineOverlayShape);
     }
     return result;
 }
Example #4
0
        public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings)
        {
            List <Shape> result = new List <Shape>();

            if (option.IsUseOutlineStyle)
            {
                Shape outlineOverlayShape = designer.ApplyRectOutlineEffect(imageShape, option.OutlineColor, 0);
                result.Add(outlineOverlayShape);
            }
            return(result);
        }