public IList <Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape, Settings settings) { if (option.IsUseTextBoxStyle) { designer.ApplyTextboxEffect(option.TextBoxColor, option.TextBoxTransparency, option.FontSizeIncrease); } return(new List <Shape>()); }
public IList<Shape> Execute(StyleOption option, EffectsDesigner designer, ImageItem source, Shape imageShape) { if (option.IsUseTextBoxStyle) { designer.ApplyTextboxEffect(option.TextBoxColor, option.TextBoxTransparency); } return new List<Shape>(); }
public void TestTextBoxEffect() { _designer.ApplyTextboxEffect("#000000", 35, 0); PpOperations.SelectSlide(1); var shapeRange = PpOperations.SelectShapesByPrefix( EffectsDesigner.ShapeNamePrefix + "_" + EffectName.TextBox); Assert.AreEqual(1, shapeRange.Count); Assert.AreEqual(MsoShapeType.msoAutoShape, shapeRange[1].Type); }