示例#1
0
 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>();
 }
示例#3
0
        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);
        }