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); }
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; }
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); }