MsoFillFormat.BackColor
MsoFillFormat.BackColor property
Gets and sets the file back color.
public Color BackColor { get; set; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Drawing;
using System.Drawing;
namespace AsposeCellsExamples
{
public class MsoFillFormatPropertyBackColorDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
ArcShape arcShape = worksheet.Shapes.AddArc(2, 0, 2, 0, 130, 130);
MsoFillFormat fillFormat = arcShape.FillFormat;
fillFormat.ForeColor = Color.Blue;
fillFormat.BackColor = Color.LightBlue;
fillFormat.Transparency = 0.5;
Console.WriteLine("BackColor set to: " + fillFormat.BackColor.Name);
workbook.Save("MsoFillFormatBackColorDemo.xlsx");
}
}
}
See Also
- class MsoFillFormat
- namespace Aspose.Cells.Drawing
- assembly Aspose.Cells