Class TextEffectFormat

TextEffectFormat class

Contains properties and methods that apply to WordArt objects.

public class TextEffectFormat

Properties

NameDescription
FontBold { get; set; }Indicates whether font is bold.
FontItalic { get; set; }Indicates whether font is italic.
FontName { get; set; }The name of the font used in the WordArt.
FontSize { get; set; }The size (in points) of the font used in the WordArt.
PresetShape { get; set; }Gets and sets the preset shape type.
RotatedChars { get; set; }If true,characters in the specified WordArt are rotated 90 degrees relative to the WordArt’s bounding shape.
Text { get; set; }The text in the WordArt.

Methods

NameDescription
SetTextEffect(MsoPresetTextEffect)Sets the preset text effect.

Examples

using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;

namespace AsposeCellsExamples
{
    public class DrawingClassTextEffectFormatDemo
    {
        public static void Run()
        {
            Workbook workbook = new Workbook();
            ShapeCollection shapes = workbook.Worksheets[0].Shapes;
            
            // Add text effect shape
            shapes.AddTextEffect(MsoPresetTextEffect.TextEffect1, "Aspose", "Arial", 30, false, false, 0, 0, 0, 0, 100, 200);
            
            // Modify text effect
            TextEffectFormat textEffectFormat = shapes[0].TextEffect;
            textEffectFormat.SetTextEffect(MsoPresetTextEffect.TextEffect10);
            
            // Save the workbook
            workbook.Save("TextEffectDemo.xlsx");
        }
    }
}

See Also