public void TestFrameEffect() { Microsoft.Office.Interop.PowerPoint.Shape shape = _designer.ApplyAlbumFrameEffect("#000000", 35); Assert.IsTrue(shape.Name.StartsWith( EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Overlay)); Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type); }
public void TestFrameEffect() { var shape = _designer.ApplyAlbumFrameEffect("#000000", 35); Assert.IsTrue(shape.Name.StartsWith( EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Overlay)); 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.IsUseFrameStyle) { var frameOverlayShape = designer.ApplyAlbumFrameEffect(option.FrameColor, option.FrameTransparency); result.Add(frameOverlayShape); } return result; }
public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { List <Shape> result = new List <Shape>(); if (option.IsUseFrameStyle) { Shape frameOverlayShape = designer.ApplyAlbumFrameEffect(option.FrameColor, option.FrameTransparency); result.Add(frameOverlayShape); } return(result); }