public void TestRectBannerEffect() { Microsoft.Office.Interop.PowerPoint.Shape shape = _designer.ApplyRectBannerEffect(BannerDirection.Auto, Position.Left, null, "#000000", 35); Assert.IsTrue(shape.Name.StartsWith( EffectsDesigner.ShapeNamePrefix + "_" + EffectName.Banner)); Assert.AreEqual(MsoShapeType.msoAutoShape, shape.Type); }
private Shape ApplyBannerStyle(StyleOption option, EffectsDesigner effectsDesigner, Shape imageShape) { return(effectsDesigner.ApplyRectBannerEffect(option.GetBannerDirection(), option.GetTextBoxPosition(), imageShape, option.BannerColor, option.BannerTransparency)); }
private Shape ApplyBannerStyle(StyleOption option, EffectsDesigner effectsDesigner, Shape imageShape) { return effectsDesigner.ApplyRectBannerEffect(option.GetBannerDirection(), option.GetTextBoxPosition(), imageShape, option.BannerColor, option.BannerTransparency); }