TextOptions.Shadow
TextOptions.Shadow property
Represents a ShadowEffect
object that specifies shadow effect for the chart element or shape.
public ShadowEffect Shadow { get; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using Aspose.Cells.Drawing.Texts;
using System.Drawing;
namespace AsposeCellsExamples
{
public class TextOptionsPropertyShadowDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
Shape shape = sheet.Shapes.AddAutoShape(AutoShapeType.Rectangle, 4, 4, 4, 4, 100, 700);
shape.Fill.FillType = FillType.None;
shape.Text = "Hello World !!!";
FontSetting fontSetting = shape.Characters(0, "Hello World !!!".Length);
TextOptions textOptions = fontSetting.TextOptions;
textOptions.Name = "Calibri";
textOptions.Size = 54;
textOptions.IsBold = true;
textOptions.Color = Color.Green;
textOptions.Outline.FillType = FillType.Solid;
textOptions.Outline.SolidFill.Color = Color.White;
textOptions.Fill.FillType = FillType.Solid;
((SolidFill)textOptions.Fill.SolidFill).Color = Color.Green;
textOptions.Shadow.PresetType = PresetShadowType.OffsetBottom;
workbook.Save("example.xlsx", SaveFormat.Xlsx);
}
}
}
See Also
- class ShadowEffect
- class TextOptions
- namespace Aspose.Cells.Drawing.Texts
- assembly Aspose.Cells